From 93218b372997b30ee19f6bfe14172815846b2566 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 12 Jun 2018 11:37:43 -0400 Subject: use variable for default chroot command --- debootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debootstrap.sh') diff --git a/debootstrap.sh b/debootstrap.sh index c0554ad..913bc66 100755 --- a/debootstrap.sh +++ b/debootstrap.sh @@ -156,12 +156,14 @@ sh_image() return $r } +default_chroot_command=/bin/bash + chroot_image() { suite=$1 name=$2 shift 2 - [ $# = 0 ] && set -- /bin/bash + [ $# -gt 0 ] || set -- $default_chroot_command set -- \ unshare -f -m -p \ chroot . \ -- cgit v1.2.3