From: Junio C Hamano Date: Wed, 6 Jun 2012 20:18:11 +0000 (-0700) Subject: Meta/Dothem: do not chdir to something you haven't created yet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67600125e4f4f3a7dff737149217b059701d0ea2;p=thirdparty%2Fgit.git Meta/Dothem: do not chdir to something you haven't created yet --- diff --git a/Dothem b/Dothem index b42bc76fb9..31cac266db 100755 --- a/Dothem +++ b/Dothem @@ -40,7 +40,7 @@ done for TRASH in /dev/shm /tmp "" do - if test -n "$TRASH" && test -d "$TRASH" && test -w "$TRASH" + if test -n "$TRASH" && mkdir -p "$TRASH/testpen" && test -w "TRASH/testpen" then TRASH="--root=$(cd "$TRASH/testpen" && /bin/pwd)" break