add exit error code
This commit is contained in:
parent
05996c8c4d
commit
1ff1a23b4f
@ -34,7 +34,7 @@ if [[ -n $domain ]]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "domain name is required"
|
echo "domain name is required"
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set update portion of command to empty string
|
# set update portion of command to empty string
|
||||||
@ -88,7 +88,7 @@ if [[ -n $status ]]; then
|
|||||||
dbset="$dbset status=\"$status\""
|
dbset="$dbset status=\"$status\""
|
||||||
else
|
else
|
||||||
echo "ERROR: status (-s) must be 1 or 0"
|
echo "ERROR: status (-s) must be 1 or 0"
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -101,5 +101,6 @@ if [ -n "$dbset" ]; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
echo "ERROR: No values passed for update."
|
echo "ERROR: No values passed for update."
|
||||||
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user