From 6c2f083ffd964ab45570e10a63d647a7b56e371c Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 17 May 2022 18:43:33 +0000 Subject: [PATCH] If specific directory is not found, assume scripts directory exists. --- utils/md5 | 2 +- utils/search.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/md5 b/utils/md5 index d3d6b59..768f3fb 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,3 +1,3 @@ 5e7a21b710475f173906085c01bd2205 - 548480c89fb8d6668a83ee9e534eb2dd - -779fe40a9c39138048d635e6ad0b3c20 - +876c9372db6d232cae42b516b2b2596f - diff --git a/utils/search.sh b/utils/search.sh index 7dcde7e..a477997 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -41,7 +41,12 @@ function check() { else if [ "$REDOWNLOAD" = "true" ]; then echo "++Redownload $1$g..." - curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g + if [ -f "$1$g" ]; then + curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g + else + echo "===Could not find directory, assuming regular scripts directory exists." + curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g + fi fi fi done