diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-01-06 11:53:47 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-01-06 11:53:47 -0200 |
commit | 9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c (patch) | |
tree | 53b6781a42fe76fb26257fb4ff12e3457bb04005 /share/hydractl | |
parent | e0a6b07725866c5c9565b782050f15b9e4d8d68a (diff) | |
download | hydra-9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c.tar.gz hydra-9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c.tar.bz2 |
Check BASE on chroot-upgrade
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" |