Meta/Dothem: do not barf if /dev/shm is not writable

Junio C Hamano committed Dec 25, 2012 at 01:54 UTC 5af0393bd9bb8cf8f967dac8b1864b8c45825f6b
1 file changed +3 -1
Dothem
+3 -1
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