From 69c087cf29c194a58d6f536684d7cbdbe64c63f9 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 22 Jul 2024 09:44:55 +0200 Subject: [PATCH] Refractor --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4630764..d18965d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,17 +15,17 @@ myynh_source_searxng () { commit_sha=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | xargs basename --suffix=".tar.gz") # Download source - sudo -H -u $app -i << EOF + sudo -H -u $app -i bash << EOF if [ ! -d "$install_dir/searxng-src" ] then mkdir "$install_dir/searxng-src" -endif +fi git clone -n "$repo_fullpath" "$install_dir/searxng-src" 2>&1 EOF # Checkout commit pushd "$install_dir/searxng-src" - sudo -H -u $app -i << EOF + sudo -H -u $app -i bash << EOF cd "$install_dir/searxng-src" git checkout "$commit_sha" 2>&1 EOF