[arch-projects] [MKINITCPIO][PATCH 4/5] Use error function instead of echo

Sebastien Luttringer seblu at seblu.net
Sun Jun 26 15:17:45 EDT 2011


Signed-off-by: Sebastien Luttringer <seblu at seblu.net>
---
 mkinitcpio |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mkinitcpio b/mkinitcpio
index a9c75ed..7a30be0 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -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
-- 
Sebastien "Seblu" Luttringer



More information about the arch-projects mailing list