From 9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 6 Jan 2014 11:53:47 -0200 Subject: Check BASE on chroot-upgrade --- share/hydractl/chroot-upgrade | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share') diff --git a/share/hydractl/chroot-upgrade b/share/hydractl/chroot-upgrade index 51cd919..ea2b736 100755 --- a/share/hydractl/chroot-upgrade +++ b/share/hydractl/chroot-upgrade @@ -24,6 +24,11 @@ if [ "`whoami`" != 'root' ]; then sudo="sudo" fi +# Check base +if [ ! -d "$BASE" ]; then + exit +fi + # Upgrade all chroots for chroot in `ls $BASE`; do folder="$BASE/$chroot" -- cgit v1.2.3