diff options
author | Michal Minar <miminar@redhat.com> | 2013-04-29 13:46:24 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-05-02 14:13:24 +0200 |
commit | 823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5 (patch) | |
tree | 07d35d369810bab94ba657a863e1b7886478c0be | |
parent | b2d1d95ef4b0812aca631d11c2b08946c73203c8 (diff) | |
download | openlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.tar.gz openlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.tar.xz openlmi-providers-823774c8fa4cee81f8ddecd0be6df78dc5d3f2d5.zip |
fixed checking for long options in openlmi-mof-register
-rwxr-xr-x | openlmi-mof-register | 2 |
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 |