diff options
author | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 20:19:04 +0200 |
---|---|---|
committer | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 23:15:56 +0200 |
commit | 10986ecadeb7cc3ac39fa55f2c4a873b54323f2f (patch) | |
tree | ee8675c63e0ea94bf7a79123cff493dfc6f05e9b | |
parent | 643da24974067821638fd27d0f9685dffb525f21 (diff) | |
download | mkinitcpio-10986ecadeb7cc3ac39fa55f2c4a873b54323f2f.tar.gz mkinitcpio-10986ecadeb7cc3ac39fa55f2c4a873b54323f2f.tar.xz |
Use error function instead of echo
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
-rwxr-xr-x | mkinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -137,9 +137,9 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z:' arg; do M) SHOW_AUTOMODS=1 ;; t) TMPDIR=$OPTARG ;; z) optcompress=$OPTARG ;; - :) echo "error: option requires an argument -- '$OPTARG'" >&2 + :) error "option requires an argument -- '$OPTARG'" >&2 exit 1 ;; - \?) echo "error: invalid option -- '$OPTARG'" >&2 + \?) error "invalid option -- '$OPTARG'" >&2 exit 1 ;; esac done |