made the un shell script more generic
This commit is contained in:
parent
9c0fe1b8dc
commit
d6ce8eed17
1 changed files with 4 additions and 1 deletions
5
run
5
run
|
@ -1,5 +1,8 @@
|
|||
#!/bin/sh
|
||||
cd "`dirname "$0"`"
|
||||
|
||||
result=${PWD##*/} # to assign to a variable
|
||||
result=${result:-/} # to correct for the case where PWD=/
|
||||
|
||||
cd ..
|
||||
exec ./dragonruby cube-tube
|
||||
exec ./dragonruby ${result}
|
Loading…
Reference in a new issue