summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe
diff options
context:
space:
mode:
Diffstat (limited to 'share/hackvr/examples/tictactoe')
-rwxr-xr-xshare/hackvr/examples/tictactoe/game.sh4
-rwxr-xr-xshare/hackvr/examples/tictactoe/run2
2 files changed, 3 insertions, 3 deletions
diff --git a/share/hackvr/examples/tictactoe/game.sh b/share/hackvr/examples/tictactoe/game.sh
index 63776f4..8c741fc 100755
--- a/share/hackvr/examples/tictactoe/game.sh
+++ b/share/hackvr/examples/tictactoe/game.sh
@@ -1,6 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
-cat camera.pos | sed 's/^junk/$USER/g'
+cat camera.pos
echo "go. player: $turn" >&2
stdbuf -oL uniq \
| grep --line-buffered action \
diff --git a/share/hackvr/examples/tictactoe/run b/share/hackvr/examples/tictactoe/run
index c60fc43..0f14b8f 100755
--- a/share/hackvr/examples/tictactoe/run
+++ b/share/hackvr/examples/tictactoe/run
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
echo "go. player: $turn"
mknod p p