fixed parameter passing from -f flag to _upload_html

This commit is contained in:
shockrah 2020-07-14 16:42:54 -07:00
parent 9d9672a320
commit 613e029642

View File

@ -13,7 +13,7 @@ _upload_html() {
fi fi
for f in $@;do for f in $@;do
remote_path=${f:1} 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 done
} }
@ -54,7 +54,7 @@ else
H) _help;; H) _help;;
h) _upload_html $(find -name '*.html');; # Upload all html content h) _upload_html $(find -name '*.html');; # Upload all html content
r) _upload_html ./*.html;; # Upload all root html pages 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 esac
done done
popd > /dev/null popd > /dev/null