Commit 4c02d711 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4835: updating rebuild script to use proper exit codes

parent 4b559e38
......@@ -41,12 +41,12 @@
if [ ! $# -eq 0 ]; then
if ! [[ "$1" =~ ^[0-9]+$ ]] || [ "$1" -lt "1" ] || [ "$1" -gt "4" ]; then
echo 'Invalid command line option for environment.'
exit 1;
exit 0;
fi
if [ "$2" != "" ] && { ! [[ "$2" =~ ^[0-9]+$ ]] || [ "$2" -lt "1" ] || [ "$2" -gt "4" ]; }; then
echo 'Invalid command line option for build type.'
exit 1;
exit 0;
fi
if [[ $1 == "" ]]; then
......
Supports Markdown
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