better logging for neocities deployment
This commit is contained in:
parent
ae0a6817cc
commit
e29ea8c0ee
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user