diff --git a/upload.sh b/upload.sh index 2745312..838882c 100755 --- a/upload.sh +++ b/upload.sh @@ -14,7 +14,7 @@ _upload_html() { fi for f in $@;do remote_path=${f:1} - echo curl -H "$auth" -F "$remote_path=@$f" $url/api/upload + echo curl -H "auth" -F "$remote_path=@$f" $url/api/upload curl -H "$auth" -F "$remote_path=@$f" $url/api/upload done } @@ -26,7 +26,7 @@ _upload_media() { for f in $@;do remote_path=${f:1} - echo curl -H "$auth" -F "$remote_path=@$f" $url/api/upload + echo curl -H "auth" -F "$remote_path=@$f" $url/api/upload curl -H "$auth" -F "$remote_path=@$f" $url/api/upload done }