From d202f63bb7044b197561ec184f2ce28f55639448 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 17 May 2022 20:08:23 +0000 Subject: [PATCH] Include hidden files in checks --- install | 2 ++ utils/main.sh | 2 +- utils/md5 | 5 +++-- utils/search.sh | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 install diff --git a/install b/install new file mode 100755 index 0000000..9301661 --- /dev/null +++ b/install @@ -0,0 +1,2 @@ +echo "Initializing..." +FILES=$(ls -dA */) diff --git a/utils/main.sh b/utils/main.sh index fef0069..645950d 100644 --- a/utils/main.sh +++ b/utils/main.sh @@ -13,7 +13,7 @@ if [ -z "$1" ] echo "" echo "" echo " Command List:" - FILES=$(ls -1 ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /') + FILES=$(ls -1A ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /') for f in $FILES do if [ $f != "md5" ]; then diff --git a/utils/md5 b/utils/md5 index fa559ce..1a18d14 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,3 +1,4 @@ d6b20a25a04a60d94f466e48fa60ac69 - -548480c89fb8d6668a83ee9e534eb2dd - -dda3ebea2ba8b958aede5076472d774b - +32a1f953ffca8584d1eb57c0ecd8a582 - +13e14229619562047b230081a9e0b4ce - +0ede00461e947494545e694040787b3f - diff --git a/utils/search.sh b/utils/search.sh index ade830a..3b26b29 100644 --- a/utils/search.sh +++ b/utils/search.sh @@ -1,5 +1,5 @@ function search() { - FILES2=$(ls $1) + FILES2=$(ls -A $1) for g in $FILES2 do if [ -d $1$g ]; @@ -19,7 +19,7 @@ function search() { function check() { echo "Check $1" - FILES2=$(ls $1) + FILES2=$(ls -A $1) if [ -f "$1/md5" ]; then echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5"