about summary refs log tree commit diff stats
path: root/subx/drun
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-03-09 14:13:56 -0800
committerKartik Agaram <vc@akkartik.com>2019-03-09 14:13:56 -0800
commit257ebf7f508d0a0352abf732019f00a1b3962741 (patch)
tree6c9e45adfe1a4b76b5d3bb65cb1910cfb1a7be89 /subx/drun
parent7a22a21995001cbdf72c5e3b92f52c9abcee3202 (diff)
downloadmu-257ebf7f508d0a0352abf732019f00a1b3962741.tar.gz
4997
Diffstat (limited to 'subx/drun')
-rwxr-xr-xsubx/drun18
1 files changed, 10 insertions, 8 deletions
diff --git a/subx/drun b/subx/drun
index 15c7f747..b094f995 100755
--- a/subx/drun
+++ b/subx/drun
@@ -10,11 +10,13 @@ then
   exit 1
 fi
 
-if [[ $1 == 'ex'* ]]
-then
-  CFLAGS=-g ./subx --map --trace run examples/$*
-  exit $?
-fi
-
-CFLAGS=-g ./subx --map --trace run apps/$*
-exit $?
+case $1 in
+  ex*)
+    ./subx --map --trace run examples/$*
+    exit $?
+    ;;
+  *)
+    ./subx --map --trace run apps/$*
+    exit $?
+    ;;
+esac