Usage function called wrong in nc-config

`usage` needs to be called with an exit value. Incorrect options won't
set the exit value, so are trickier to detect
This commit is contained in:
Peter Hill 2016-08-18 16:48:30 +01:00
parent f629bbad8d
commit d455718f40
2 changed files with 4 additions and 6 deletions

View File

@ -350,9 +350,8 @@ while test $# -gt 0; do
*)
echo "unknown option: $1"
usage
exit 1
;;
usage 1
;;
esac
shift
done

View File

@ -297,9 +297,8 @@ while test $# -gt 0; do
*)
echo "unknown option: $1"
usage
exit 1
;;
usage 1
;;
esac
shift
done