about summary refs log tree commit diff stats
path: root/subx/nrun
diff options
context:
space:
mode:
Diffstat (limited to 'subx/nrun')
-rwxr-xr-xsubx/nrun11
1 files changed, 9 insertions, 2 deletions
diff --git a/subx/nrun b/subx/nrun
index f5c22dee..01658574 100755
--- a/subx/nrun
+++ b/subx/nrun
@@ -3,8 +3,15 @@
 
 if [ $# -eq 0 ]
 then
-  echo "nrun <suffix>"
+  echo "nrun <binary>"
   exit 1
 fi
 
-./teensy/test$1
+if [[ $1 == 'test'* ]]
+then
+  ./teensy/$1
+  exit $?
+fi
+
+./$1
+exit $?