mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
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:
parent
fa958537c1
commit
100ab79eab
@ -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=""
|
||||
|
@ -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=""
|
||||
|
@ -41,7 +41,7 @@ function usage() {
|
||||
echo ""
|
||||
echo " -a <application (.app)>"
|
||||
echo " -o <output>"
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
ARGV_APPLICATION=""
|
||||
|
@ -42,7 +42,7 @@ function usage() {
|
||||
echo ""
|
||||
echo " -a <application (.app)>"
|
||||
echo " -i <identity>"
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
ARGV_APPLICATION=""
|
||||
|
@ -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=""
|
||||
|
@ -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=""
|
||||
|
@ -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=""
|
||||
|
@ -35,7 +35,7 @@ function usage() {
|
||||
echo ""
|
||||
echo " -d <directory>"
|
||||
echo " -o <output>"
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
ARGV_DIRECTORY=""
|
||||
|
@ -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=""
|
||||
|
@ -40,7 +40,7 @@ function usage() {
|
||||
echo " -x <install prefix>"
|
||||
echo " -f force install"
|
||||
echo " -p production install"
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
ARGV_ARCHITECTURE=""
|
||||
|
@ -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=""
|
||||
|
@ -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=""
|
||||
|
Loading…
x
Reference in New Issue
Block a user