]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Dothem: do not chdir to something you haven't created yet
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2012 20:18:11 +0000 (13:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2012 20:55:20 +0000 (13:55 -0700)
Dothem

diff --git a/Dothem b/Dothem
index b42bc76fb9b95a7468c28dd5a1517c8561ae1455..31cac266db0805248f76aad7273b48dacafd1897 100755 (executable)
--- 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