summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch5
1 files changed, 5 insertions, 0 deletions
diff --git a/ch b/ch
index bcc759b..00def24 100755
--- a/ch
+++ b/ch
@@ -39,6 +39,11 @@ shopt -s nullglob
umask 022
+if [[ ! -d "$CHROOTS" ]]; then
+ echo "chroot base directory '$CHROOTS' does not exist or is not readable"
+ return 1
+fi
+
__genchroot() {
sudo btrfs subvolume snapshot "$chrootdir/root" "$copydir"
}