summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/line2hackvr.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/line2hackvr.sh b/tools/line2hackvr.sh
index d46d73d..f2ea143 100755
--- a/tools/line2hackvr.sh
+++ b/tools/line2hackvr.sh
@@ -1,3 +1,7 @@
#!/bin/sh
#this is used on turn2line output
-xargs -L 1 printf "dragon addshape 2 0 %d %d 0 %d %d\n" $line
+if [ "_$1" = '_' ];then
+ echo 'usage: line2hackvr.sh name' >&2
+ exit 1
+fi
+xargs -L 1 printf "%s addshape 2 0 %d %d 0 %d %d\n" "$1" $line