From f554a3325958c04731e72b58e25b0a93a52588a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Mon, 31 Jan 2005 16:28:54 +0000 Subject: sanity checks (file existence) --- mkmultiarch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkmultiarch b/mkmultiarch index 8ffaf4b..ec657c6 100755 --- a/mkmultiarch +++ b/mkmultiarch @@ -76,6 +76,8 @@ EOF } while [[ $# -gt 0 ]]; do - dispatch_$type $1 - shift + file=$1 + shift 1 + [[ -f $file ]] || error "$file does not exist!" + dispatch_$type $file done -- cgit v1.2.1