aboutsummaryrefslogtreecommitdiff
path: root/shflags
diff options
context:
space:
mode:
authorKate Ward <kate.ward@forestent.com>2020-04-10 14:30:13 +0200
committerKate Ward <kate.ward@forestent.com>2020-04-10 14:30:13 +0200
commit77a6d9e2425071609c843751f83b2eaca5c9a06a (patch)
treef75c10cc4a7da7bebe83b00b05be174ba4384b2f /shflags
parent16e941e937cbcbd7cfc9cd06eb43e9e4fd579238 (diff)
downloadshflags-77a6d9e2425071609c843751f83b2eaca5c9a06a.tar.gz
Fixed 'set -e' errors.
Diffstat (limited to 'shflags')
-rw-r--r--shflags4
1 files changed, 1 insertions, 3 deletions
diff --git a/shflags b/shflags
index da09932..35fb137 100644
--- a/shflags
+++ b/shflags
@@ -357,9 +357,7 @@ _flags_define() {
fi
# Check for existing short name definition.
- if [ ${_flags_return_} -eq ${FLAGS_TRUE} \
- -a "${_flags_short_}" != "${__FLAGS_NULL}" ]
- then
+ if [ ${_flags_return_} -eq ${FLAGS_TRUE} -a "${_flags_short_}" != "${__FLAGS_NULL}" ]; then
if _flags_itemInList "${_flags_short_}" "${__flags_shortNames}"; then
flags_error="flag short name (${_flags_short_}) already defined"
_flags_warn "${flags_error}"