summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xopenlmi-mof-register2
1 files changed, 1 insertions, 1 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register
index b2b1790..c7992cd 100755
--- a/openlmi-mof-register
+++ b/openlmi-mof-register
@@ -127,7 +127,7 @@ while getopts "$optspec" optchar; do
JUST_MOFS=1
;;
*)
- if [ "$OPTERR" = 1 ] && [ "${optspec:0:1}" != ":" ]; then
+ if [ "$OPTERR" != 1 ] || [ "${optspec:0:1}" = ":" ]; then
echo "Unknown option --${OPTARG}" >&2
exit 1
fi