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

This commit is contained in:
Junio C Hamano
2012-12-25 01:54:28 -08:00
parent d4976bf4fe
commit 5af0393bd9

4
Dothem
View File

@@ -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