summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/tictactoe
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2019-02-06 01:20:43 -0600
committerepoch <epoch@hacking.allowed.org>2019-02-06 01:20:43 -0600
commitc45f918c635ea6f8d947f5e7bb7f646656c89b30 (patch)
treed4a2faf10a09779dfbbefe6e68a47cc663e803ac /share/hackvr/examples/tictactoe
parentbf16b7b8593d4013adbd03838af5a2fb3bce34ee (diff)
downloadhackvr-c45f918c635ea6f8d947f5e7bb7f646656c89b30.tar.gz
hackvr-c45f918c635ea6f8d947f5e7bb7f646656c89b30.zip
changed the shebang from /bin/bash to /usr/bin/env bash on a lot of the examples.
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