Some shells set $_ to an absolute path.
This commit is contained in:
parent
05a7f0b2fb
commit
1cdb0c21d4
1 changed files with 12 additions and 3 deletions
|
@ -8,9 +8,18 @@ sptps_test=../src/sptps_test
|
|||
|
||||
# Test directories
|
||||
|
||||
d1=$PWD/$_.1
|
||||
d2=$PWD/$_.2
|
||||
d3=$PWD/$_.3
|
||||
case "$_" in
|
||||
/*)
|
||||
d1=$_.1
|
||||
d2=$_.2
|
||||
d3=$_.3
|
||||
;;
|
||||
*)
|
||||
d1=$PWD/$_.1
|
||||
d2=$PWD/$_.2
|
||||
d3=$PWD/$_.3
|
||||
;;
|
||||
esac
|
||||
|
||||
# Remove test directories
|
||||
|
||||
|
|
Loading…
Reference in a new issue