better logging for neocities deployment

This commit is contained in:
shockrah 2021-02-10 20:41:38 -08:00
parent ae0a6817cc
commit e29ea8c0ee

View File

@ -14,8 +14,8 @@ _upload_html() {
fi fi
for f in $@;do for f in $@;do
remote_path=${f:1} remote_path=${f:1}
echo curl -H "auth" -F "$remote_path=@$f" $url/api/upload echo curl -s -o /dev/null -w '%{http_code}' -H "auth" -F "$remote_path=@$f" $url/api/upload
curl -H "$auth" -F "$remote_path=@$f" $url/api/upload > /dev/null curl -s -o /dev/null -w '%{http_code}' -H "auth" -F "$remote_path=@$f" $url/api/upload
done done
} }
@ -26,8 +26,8 @@ _upload_media() {
for f in $@;do for f in $@;do
remote_path=${f:1} remote_path=${f:1}
echo curl -H "auth" -F "$remote_path=@$f" $url/api/upload echo curl -s -o /dev/null -w '%{http_code}' -H "auth" -F "$remote_path=@$f" $url/api/upload
curl -H "$auth" -F "$remote_path=@$f" $url/api/upload curl -s -o /dev/null -w '%{http_code}' -H "auth" -F "$remote_path=@$f" $url/api/upload
done done
} }