diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-01-31 17:49:38 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2005-01-31 17:49:38 +0000 |
commit | 4d710af54352082d27a8a630a1af640c568384f5 (patch) | |
tree | 43916e0f776c589d560e902e57fd61baedf79f2c /alsaconf | |
parent | ffa1ca09fe0adbd3ab0d18db49b45bf265d75c0f (diff) |
Fix exit code
Fixed the exit code with -h option and invalid options.
Diffstat (limited to 'alsaconf')
-rw-r--r-- | alsaconf/alsaconf.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index b09f2f2..d8bd2c0 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -89,7 +89,6 @@ usage() { -c|--config file specify the module config file -h|--help what you're reading" - exit 1 } OPTS=`getopt -o lmL:hp:Pu:g:d:rs:c: --long legacy,modinfo,log:,help,probe:,listprobe,uid:,gid:,devmode:,strict,sound:,config: -n alsaconf -- "$@"` || exit 1 @@ -117,7 +116,7 @@ while true ; do -s|--sound) TESTSOUND=$2; shift 2;; -h|--help) - usage; exit 1 ;; + usage; exit 0 ;; -L|--log) LOGFILE="$2"; shift 2;; -p|--probe) |