]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fix exit code
authorTakashi Iwai <tiwai@suse.de>
Mon, 31 Jan 2005 17:49:38 +0000 (17:49 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 31 Jan 2005 17:49:38 +0000 (17:49 +0000)
Fixed the exit code with -h option and invalid options.

alsaconf/alsaconf.in

index b09f2f24e1b2cc0ec1ed7fbaf8178efb435f867e..d8bd2c050102f292e347e9f812b39eddd3b57e01 100644 (file)
@@ -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)