From 65050245af002136fe72cf683854c3309fab6006 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 1 Oct 2015 16:18:43 +0000 Subject: [PATCH] custom-chroot: do not abort when unshare is old --- .bin/custom-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/custom-chroot b/.bin/custom-chroot index 8b109d0..67da2ea 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -6,7 +6,7 @@ bootstrap() { if [[ -z ${UNSHARE} ]] ; then mount_args= if type -P unshare >&/dev/null ; then - test_arg() { unshare "$@" -- true >&/dev/null && uargs+=( "$@" ); } + test_arg() { unshare "$@" -- true >&/dev/null && uargs+=( "$@" ) || :; } uargs=( -m ) test_arg -u test_arg -i -- 2.39.2