From c2461399624f713246384645bd22757ca4e68616 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 30 Nov 2020 11:36:39 +0300 Subject: [PATCH] slight change to upload script --- upload.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/upload.sh b/upload.sh index 96bd731..d985eff 100755 --- a/upload.sh +++ b/upload.sh @@ -1,4 +1,5 @@ #!/bin/bash +# vi:sw=2 if ! [[ -f upload.pwd ]]; then echo "You need a file named upload.pwd with the following format:" @@ -87,8 +88,11 @@ else fi if [[ ${#UPARGS[@]} -gt 0 ]]; then + if [[ ! ${NOUPLOAD} ]]; then curl ${UPARGS[@]} "https://$N_USER:$N_PWD@neocities.org/api/upload" && touch upload.lasttime - else + else + echo "Not uploading differing files." + fi echo "No files need to be uploaded." fi