Make Shellcheck happier about exit codes

This commit is contained in:
Ondrej Simek committed 2017-07-29 14:31:27 +02:00
1 parent f438ff4bab
commit baa1160594
1 file changed
+3 -1
+3 -1
View File
@@ -94,10 +94,12 @@ dns_he_rm() {
_post "$body" "https://dns.he.net/" \
| grep '<div id="dns_status" onClick="hideThis(this);">Successfully removed record.</div>' \
>/dev/null
if [ "$?" -eq 0 ]; then
exit_code="$?"
if [ "$exit_code" -eq 0 ]; then
_info "Record removed successfuly."
else
_err "Could not clean (remove) up the record. Please go to HE administration interface and clean it by hand."
return "$exit_code"
fi
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.