From c84a6107987f4b0decaaff51c2d3ac49852d00f8 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 22 Jul 2024 09:06:54 +0200 Subject: [PATCH] Refractor --- scripts/_common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 925dccb..903f49b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,7 +16,10 @@ myynh_source_searxng () { # Download source sudo -i -u $app bash << EOF -mkdir "$install_dir/searxng-src" +if [ ! -d "$install_dir/searxng-src" ] +then + mkdir "$install_dir/searxng-src" +endif git clone -n "$repo_fullpath" "$install_dir/searxng-src" 2>&1 pushd "$install_dir/searxng-src" git checkout "$commit_sha" 2>&1