made the un shell script more generic

This commit is contained in:
Gordon Pedersen 2023-05-08 15:21:55 +10:00
parent 9c0fe1b8dc
commit d6ce8eed17

5
run
View file

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
cd "`dirname "$0"`" cd "`dirname "$0"`"
result=${PWD##*/} # to assign to a variable
result=${result:-/} # to correct for the case where PWD=/
cd .. cd ..
exec ./dragonruby cube-tube exec ./dragonruby ${result}