diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2005-01-31 16:28:54 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2005-01-31 16:28:54 +0000 |
commit | f554a3325958c04731e72b58e25b0a93a52588a5 (patch) | |
tree | d6d6d53d968cd1fd6c4814e7f020a0940521a3ce /mkmultiarch | |
parent | 8c29dc1aa40bb61e0f182bf8c88820c5ae2d1fca (diff) | |
download | multiarch-utils-f554a3325958c04731e72b58e25b0a93a52588a5.tar multiarch-utils-f554a3325958c04731e72b58e25b0a93a52588a5.tar.gz multiarch-utils-f554a3325958c04731e72b58e25b0a93a52588a5.tar.bz2 multiarch-utils-f554a3325958c04731e72b58e25b0a93a52588a5.tar.xz multiarch-utils-f554a3325958c04731e72b58e25b0a93a52588a5.zip |
sanity checks (file existence)
Diffstat (limited to 'mkmultiarch')
-rwxr-xr-x | mkmultiarch | 6 |
1 files 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 |