From aa2f7a45b850e05d37dc6e6c371018a450b17a9f Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 28 Jul 2024 04:06:19 +0300 Subject: [PATCH] upload.sh: --fresh flag --- upload.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upload.sh b/upload.sh index dd5a4ab..fbb6faf 100755 --- a/upload.sh +++ b/upload.sh @@ -2,6 +2,14 @@ set +e +for arg in "$*" +do + case "$arg" in + "--fresh") find ./html/ -type f -name '*.upload-checksum' -delete + ;; + esac +done + for cur in ./html/{*,*/*,*/*/*}; do if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then if [ -f "$cur.upload-checksum" ]; then