diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/chroot-upgrade | 5 |
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" |