If specific directory is not found, assume scripts directory exists.

main
sigonasr2, Sig, Sigo 3 years ago
parent 2a36025c72
commit 6c2f083ffd
  1. 2
      utils/md5
  2. 7
      utils/search.sh

@ -1,3 +1,3 @@
5e7a21b710475f173906085c01bd2205 -
548480c89fb8d6668a83ee9e534eb2dd -
779fe40a9c39138048d635e6ad0b3c20 -
876c9372db6d232cae42b516b2b2596f -

@ -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

Loading…
Cancel
Save