summaryrefslogtreecommitdiff
path: root/share/hydractl/chroot-upgrade
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-06 11:53:47 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-06 11:53:47 -0200
commit9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c (patch)
tree53b6781a42fe76fb26257fb4ff12e3457bb04005 /share/hydractl/chroot-upgrade
parente0a6b07725866c5c9565b782050f15b9e4d8d68a (diff)
downloadhydra-9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c.tar.gz
hydra-9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c.tar.bz2
Check BASE on chroot-upgrade
Diffstat (limited to 'share/hydractl/chroot-upgrade')
-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"