summaryrefslogtreecommitdiffstats
path: root/openlmi-mof-register
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-04-29 13:46:24 +0200
committerMichal Minar <miminar@redhat.com>2013-05-02 14:13:24 +0200
commit823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5 (patch)
tree07d35d369810bab94ba657a863e1b7886478c0be /openlmi-mof-register
parentb2d1d95ef4b0812aca631d11c2b08946c73203c8 (diff)
downloadopenlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.zip
openlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.tar.gz
openlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.tar.xz
fixed checking for long options in openlmi-mof-register
Diffstat (limited to 'openlmi-mof-register')
-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