From 4d710af54352082d27a8a630a1af640c568384f5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 31 Jan 2005 17:49:38 +0000 Subject: [PATCH] Fix exit code Fixed the exit code with -h option and invalid options. --- alsaconf/alsaconf.in | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.47.1