aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/chroot-upgrade5
1 files changed, 5 insertions, 0 deletions
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"