summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-06-03 12:18:30 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-06-03 12:18:30 +0200
commit4ee34c7b9a53602f531f66683a87feb14051a1df (patch)
treef23c3d37a80754a7cb246ce9ecdd99abb5f36718 /ch
parent03f19c98e3f8476c5d57dda089033a4973b415d6 (diff)
downloadbin-4ee34c7b9a53602f531f66683a87feb14051a1df.tar.gz
bin-4ee34c7b9a53602f531f66683a87feb14051a1df.tar.xz
ch: enable nullglob to prevent errors if no chroots exist
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch2
1 files changed, 2 insertions, 0 deletions
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"
}