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