chore: exit with error code 1 on build script usage section (#916)

We're currently exitting with error code 0 when displaying the usage
information on build scripts, which means that if the user forgets or
mistypes an option argument, the script will carry on its way.

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-12-01 11:58:10 -04:00 committed by GitHub
parent fa958537c1
commit 100ab79eab
12 changed files with 12 additions and 12 deletions

View File

@ -47,7 +47,7 @@ function usage() {
echo " -t <application category>"
echo " -a <application asar (.asar)>"
echo " -i <application icon (.icns)>"
exit 0
exit 1
}
ARGV_ELECTRON_DIRECTORY=""

View File

@ -50,7 +50,7 @@ function usage() {
echo " -i <application icon (.icns)>"
echo " -b <application background (.png)>"
echo " -o <output>"
exit 0
exit 1
}
ARGV_APPLICATION_NAME=""

View File

@ -41,7 +41,7 @@ function usage() {
echo ""
echo " -a <application (.app)>"
echo " -o <output>"
exit 0
exit 1
}
ARGV_APPLICATION=""

View File

@ -42,7 +42,7 @@ function usage() {
echo ""
echo " -a <application (.app)>"
echo " -i <identity>"
exit 0
exit 1
}
ARGV_APPLICATION=""

View File

@ -42,7 +42,7 @@ function usage() {
echo " -v <application version>"
echo " -l <application license file>"
echo " -a <application asar (.asar)>"
exit 0
exit 1
}
ARGV_ELECTRON_DIRECTORY=""

View File

@ -47,7 +47,7 @@ function usage() {
echo " -b <application binary name>"
echo " -i <application icon (.png)>"
echo " -o <output>"
exit 0
exit 1
}
ARGV_APPLICATION_NAME=""

View File

@ -43,7 +43,7 @@ function usage() {
echo " -r <application architecture>"
echo " -c <debian configuration (.json)>"
echo " -o <output directory>"
exit 0
exit 1
}
ARGV_DIRECTORY=""

View File

@ -35,7 +35,7 @@ function usage() {
echo ""
echo " -d <directory>"
echo " -o <output>"
exit 0
exit 1
}
ARGV_DIRECTORY=""

View File

@ -27,7 +27,7 @@ function usage() {
echo " -s <source directory>"
echo " -f <extra files (comma separated)>"
echo " -o <output>"
exit 0
exit 1
}
ARGV_SOURCE_DIRECTORY=""

View File

@ -40,7 +40,7 @@ function usage() {
echo " -x <install prefix>"
echo " -f force install"
echo " -p production install"
exit 0
exit 1
}
ARGV_ARCHITECTURE=""

View File

@ -38,7 +38,7 @@ function usage() {
echo " -v <electron version>"
echo " -s <electron operating system>"
echo " -o <output directory>"
exit 0
exit 1
}
ARGV_ARCHITECTURE=""

View File

@ -40,7 +40,7 @@ function usage() {
echo " -r <architecture>"
echo " -s <operating system (linux|darwin)>"
echo " -o <output directory>"
exit 0
exit 1
}
ARGV_APPLICATION_NAME=""