From: Mike Frysinger Date: Thu, 1 Oct 2015 16:18:43 +0000 (+0000) Subject: custom-chroot: do not abort when unshare is old X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=65050245af002136fe72cf683854c3309fab6006;p=home.git custom-chroot: do not abort when unshare is old --- 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