From d6ce8eed174e6cc3332dd121cc96f26f343df766 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Mon, 8 May 2023 15:21:55 +1000 Subject: [PATCH] made the un shell script more generic --- run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run b/run index 5784beb..bde993f 100755 --- a/run +++ b/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} \ No newline at end of file