diff options
-rwxr-xr-x | ch | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" } |