From a204330db26a0c3f5b4e88bdc495af350e262ab4 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 18 Apr 2017 01:33:44 -0500 Subject: the changes needed to get tictactoe running pretty. --- tools/line2hackvr.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') 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 -- cgit v1.2.3