diff --git a/.gitignore b/.gitignore index 6045a5a..69626ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +localhashes.txt +remotehashes.txt Makefile.cfg upload.pwd upload.lasttime diff --git a/static/neocities.gif b/static/neocities.gif new file mode 100644 index 0000000..a4a7551 Binary files /dev/null and b/static/neocities.gif differ diff --git a/upload.sh b/upload.sh index 975863a..96bd731 100755 --- a/upload.sh +++ b/upload.sh @@ -74,7 +74,7 @@ else echo $FILELIST | jq -cr '.files[]|select(.is_directory == false)|[.sha1_hash,.path] | @tsv' | sed 's/\t/ /' | sort -k2 > remotehashes.txt - ( cd out; find -name '[!.]*' * -type f -exec sha1sum {} + | sort -k2 ) > localhashes.txt + ( cd out; find . -name '[!.]*' -type f -exec sha1sum {} + | sort -k2 | sed 's/ \.\// /' ) > localhashes.txt UPDFILES=`diff -U0 localhashes.txt remotehashes.txt | grep ^-[0-9a-f] | cut -d " " -f3`