From 4ee34c7b9a53602f531f66683a87feb14051a1df Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 3 Jun 2013 12:18:30 +0200 Subject: ch: enable nullglob to prevent errors if no chroots exist Signed-off-by: Florian Pritz --- ch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch b/ch index 04bb6d5..5334b43 100755 --- a/ch +++ b/ch @@ -18,6 +18,8 @@ # functions for building chroots CHROOTS="/mnt/chroots/arch" +shopt -s nullglob + __genchroot() { sudo btrfs subvolume snapshot "$chrootdir/root" "$copydir" } -- cgit v1.2.3-24-g4f1b