mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
fixed error handling in upload.sh
This commit is contained in:
parent
f6b3e1aa75
commit
fc94dc1d65
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ else
|
|||
echo "Checking neocities for a file list..."
|
||||
FILELIST=`curl -sS "https://$N_USER:$N_PWD@neocities.org/api/list"`
|
||||
|
||||
if [ `echo "$FILELIST" | jq -r ".result"` != 'success' ]; then
|
||||
FILERESULT=`echo "$FILELIST" | jq -r ".result"`
|
||||
|
||||
if [ "$FILERESULT" != 'success' ]; then
|
||||
echo "Error while requesting file list."
|
||||
echo "$FILELIST"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue