@leroysheep / LeeRoySheep / commits / 67600125e4

Meta/Dothem: do not chdir to something you haven't created yet

Junio C Hamano committed Jun 6, 2012 at 13:18 UTC 67600125e4f4f3a7dff737149217b059701d0ea2
1 file changed +1 -1
Dothem
+1 -1
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