Include the possibility of only the scripts folder being copied

main
sigonasr2, Sig, Sigo 3 years ago
parent 829edb306d
commit cfcf834362
  1. 2
      utils/md5
  2. 6
      utils/search.sh

@ -1,3 +1,3 @@
5e7a21b710475f173906085c01bd2205 - 5e7a21b710475f173906085c01bd2205 -
548480c89fb8d6668a83ee9e534eb2dd - 548480c89fb8d6668a83ee9e534eb2dd -
876c9372db6d232cae42b516b2b2596f - 03061acd7af07b0d1295509234ff99b7 -

@ -42,7 +42,13 @@ function check() {
if [ "$REDOWNLOAD" = "true" ]; then if [ "$REDOWNLOAD" = "true" ]; then
echo "++Redownload $1$g..." echo "++Redownload $1$g..."
if [ -f "$1$g" ]; then if [ -f "$1$g" ]; then
#Read the 2nd line and see if it has a special directory.
CHECKLINE=$(sed -n '2{p;q;}' $1$g)
if [ "${CHECKLINE:0:1}" = "#" ]; then
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/${CHECKLINE:1}/$1$g --output $1$g
else
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output $1$g
fi
else else
echo "===Could not find directory, assuming regular scripts directory exists." echo "===Could not find directory, assuming regular scripts directory exists."
curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g curl https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1$g --output scripts/$g

Loading…
Cancel
Save