From 613e029642dd569c3e0ce31196f8a868ecd5a16b Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 14 Jul 2020 16:42:54 -0700 Subject: [PATCH] fixed parameter passing from -f flag to _upload_html --- upload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.sh b/upload.sh index c1fe9ea..88fd1e8 100644 --- a/upload.sh +++ b/upload.sh @@ -13,7 +13,7 @@ _upload_html() { fi for f in $@;do remote_path=${f:1} - curl -H "$auth" -F "$remote_path=@$f" $url/api/upload + echo curl -H "$auth" -F "$remote_path=@$f" $url/api/upload done } @@ -54,7 +54,7 @@ else H) _help;; h) _upload_html $(find -name '*.html');; # Upload all html content r) _upload_html ./*.html;; # Upload all root html pages - f) _upload_html $1/*.html;;# Upload html in the spec'd folder + f) _upload_html $2/*.html;;# Upload html in the spec'd folder esac done popd > /dev/null