From 5af0393bd9bb8cf8f967dac8b1864b8c45825f6b Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 25 Dec 2012 01:54:28 -0800 Subject: [PATCH] Meta/Dothem: do not barf if /dev/shm is not writable --- Dothem | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3