Ensure we can cd into directories starting with a hyphen. Fixes #3.

This commit is contained in:
David Jones 2013-07-26 12:51:01 +01:00
parent 8913cbc195
commit 8d53676743
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exit 0

4
urchin
View File

@ -2,7 +2,7 @@
fullpath() {
(
cd "$1"
cd -- "$1"
pwd
)
}
@ -28,7 +28,7 @@ recurse() {
(
indent $indent_level
echo " ${potential_test}"
cd "$potential_test"
cd -- "$potential_test"
[ -f setup_dir ] && [ -x setup_dir ] && ./setup_dir >> "$stdout_file"
for test in *
do