summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2011-09-17 16:47:39 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-10-07 21:53:04 +0200
commita790c39c7dc3074e26b780054b0fc5a33eaa4a2b (patch)
treefc65a8cadf5692456e54d2746f9892be424409b0
parente66a1f3cd85b22cd5113684acdad50e5c077662e (diff)
downloaddevtools-a790c39c7dc3074e26b780054b0fc5a33eaa4a2b.tar.gz
devtools-a790c39c7dc3074e26b780054b0fc5a33eaa4a2b.tar.xz
makechrootpkg: If chroot is missing, exit instead of usage
I'm not sure why this was handled differently than the other error conditions. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 6bedf03..092f195 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -108,7 +108,7 @@ fi
if [[ ! -d $chrootdir/root ]]; then
echo 'Missing chroot dir root directory.'
echo "Try using: mkarchroot $chrootdir/root base base-devel sudo"
- usage
+ exit 1
fi
umask 0022