From: Junio C Hamano Date: Tue, 25 Dec 2012 09:54:28 +0000 (-0800) Subject: Meta/Dothem: do not barf if /dev/shm is not writable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af0393bd9bb8cf8f967dac8b1864b8c45825f6b;p=thirdparty%2Fgit.git Meta/Dothem: do not barf if /dev/shm is not writable --- diff --git a/Dothem b/Dothem index 3f4a6bf64c..b0efcaa042 100755 --- a/Dothem +++ b/Dothem @@ -40,7 +40,9 @@ done for TRASH in /dev/shm /tmp "" do - if test -n "$TRASH" && mkdir -p "$TRASH/testpen" && test -w "TRASH/testpen" + if test -n "$TRASH" && + mkdir -p "$TRASH/testpen" 2>/dev/null && + test -w "TRASH/testpen" then TRASH="--root=$(cd "$TRASH/testpen" && /bin/pwd)" break