diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-02-12 02:40:38 +0000 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-03-05 11:33:12 +0000 |
commit | 2511fff2595a5d44e50a1b684acd64cb30876c42 (patch) | |
tree | a2fb1a464ff55ca8efc0b6743e4f687860fbdc75 /scripts/build/config | |
parent | f3544ff68eac6a62d71abff9a82eb787b18d8d2f (diff) | |
download | vyos-live-build-2511fff2595a5d44e50a1b684acd64cb30876c42.tar.gz vyos-live-build-2511fff2595a5d44e50a1b684acd64cb30876c42.zip |
don't unnecessarily convert exit codes to strings
Closes: #952861
Diffstat (limited to 'scripts/build/config')
-rwxr-xr-x | scripts/build/config | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build/config b/scripts/build/config index 979f3f059..e9328d5a6 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -166,8 +166,7 @@ Local_arguments () LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')" ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:d:m:k:b:s:c:huv --shell sh -- "${@}")" - if [ "${?}" != "0" ] - then + if [ $? -ne 0 ]; then Echo_error "terminating" >&2 exit 1 fi |