Commit 9a3329a8 authored by nanahira's avatar nanahira

fix

parent fe00852a
......@@ -3,7 +3,7 @@ apiRoot=https://sapi.moecube.com:444
loginInfo=$(curl -sL -X POST $apiRoot/accounts/signin -d account=$username -d password=$password)
loginExitCode="$?"
loginErrorMessage=$(echo "$loginInfo" | jq '.message' | sed 's/"//g')
if [[ "$loginExitCode" -gt 0 ]]; then
if [[ "$loginErrorMessage" != "null" ]]; then
echo "Login failed: $loginErrorMessage"
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment