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
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