From: Takashi Iwai Date: Mon, 31 Jan 2005 17:49:38 +0000 (+0000) Subject: Fix exit code X-Git-Tag: v1.0.9rc1~14 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=4d710af54352082d27a8a630a1af640c568384f5;p=alsa-utils.git Fix exit code Fixed the exit code with -h option and invalid options. --- 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)