include main directory

main
sigonasr2, Sig, Sigo 3 years ago
parent 47ae1ff62a
commit 305a07bc09
  1. 5
      scripts/commit.sh
  2. 2
      scripts/md5
  3. 2
      utils/md5
  4. 8
      utils/search.sh

@ -11,6 +11,11 @@ for f in $FILES
do do
search $f search $f
done done
FILES=$(ls -p | grep -v /)
for f in $FILES
do
md5sum < $1$g >> $1md5
done
git add -u git add -u
git add * git add *
git commit -m "$*" git commit -m "$*"

@ -1 +1 @@
1aaed43b1f90e8ca1926f79f20d836e9 - 1094c3bd2fba49cf27e26c10b63451cc -

@ -1,3 +1,3 @@
a137a2465efff1c5c1ac2e59ccddb20b - a137a2465efff1c5c1ac2e59ccddb20b -
548480c89fb8d6668a83ee9e534eb2dd - 548480c89fb8d6668a83ee9e534eb2dd -
3d3c053e6902e501283ca7e1d2b99ea1 - e2414fa0ac4594be9c2002aa6e98ebb6 -

@ -16,9 +16,11 @@ function search() {
function check() { function check() {
echo "Check $1" echo "Check $1"
FILES2=$(ls $1) FILES2=$(ls $1)
MD5_EXISTS=false
if [ -f "$1/md5" ]; if [ -f "$1/md5" ];
then then
echo " md5 exists" MD5_EXISTS=true
echo " md5: $MD5_EXISTS"
fi fi
for g in $FILES2 for g in $FILES2
do do
@ -26,6 +28,10 @@ function check() {
then then
echo "$1$g is a directory" echo "$1$g is a directory"
check $1$g/ check $1$g/
else
if [ "$MD5_EXISTS" = true ]; then
md5hash < curl -s https://raw.githubusercontent.com/sigonasr2/SigScript/main/sig
fi
fi fi
done done
} }
Loading…
Cancel
Save