]> git.wh0rd.org - home.git/commitdiff
custom-chroot: do not abort when unshare is old
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 Oct 2015 16:18:43 +0000 (16:18 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 1 Oct 2015 16:18:43 +0000 (16:18 +0000)
.bin/custom-chroot

index 8b109d01b4d7a8f77749edaf04095bf0dc1cfeb4..67da2eaa286fedeae1350c457bd906903d347aef 100755 (executable)
@@ -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