diff options
author | epoch <epoch@hacking.allowed.org> | 2019-02-06 01:20:43 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2019-02-06 01:20:43 -0600 |
commit | c45f918c635ea6f8d947f5e7bb7f646656c89b30 (patch) | |
tree | d4a2faf10a09779dfbbefe6e68a47cc663e803ac /share/hackvr | |
parent | bf16b7b8593d4013adbd03838af5a2fb3bce34ee (diff) | |
download | hackvr-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')
-rwxr-xr-x | share/hackvr/examples/anonet_map.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/chess/board.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/chess/run | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/draw/draw.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/backend-filebrowser.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/backend-gopher.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/backend-ps.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/frontend-hackvr.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/frontend-zenity.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/list_to_cubes.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/filebrowser/run | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/grid_floor.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/hackvr_term/run | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/hackvr_term/run.pty | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/hackvrnet/connect.sh | 2 | ||||
-rwxr-xr-x | share/hackvr/examples/tictactoe/game.sh | 4 | ||||
-rwxr-xr-x | share/hackvr/examples/tictactoe/run | 2 |
17 files changed, 18 insertions, 18 deletions
diff --git a/share/hackvr/examples/anonet_map.sh b/share/hackvr/examples/anonet_map.sh index a16a196..188dd78 100755 --- a/share/hackvr/examples/anonet_map.sh +++ b/share/hackvr/examples/anonet_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cat <(printf "%s move 0 0 -270\n" "$USER") \ <(wget http://hacking.allowed.org/cgi-bin/map_hackvr.cgi -qO- 2>/dev/null) \ /dev/stdin \ diff --git a/share/hackvr/examples/chess/board.sh b/share/hackvr/examples/chess/board.sh index f574065..5848c98 100755 --- a/share/hackvr/examples/chess/board.sh +++ b/share/hackvr/examples/chess/board.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash width=8 height=8 diff --git a/share/hackvr/examples/chess/run b/share/hackvr/examples/chess/run index 4f0cdce..0fdfdf3 100755 --- a/share/hackvr/examples/chess/run +++ b/share/hackvr/examples/chess/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mknod p p stdbuf -oL cat camera.pos <(./board.sh) <(cat p | ./gnuchess-to-hackvr.sh) | hackvr "$USER" | ./hackvr-to-gnuchess.sh | gnuchess -x > p rm p diff --git a/share/hackvr/examples/draw/draw.sh b/share/hackvr/examples/draw/draw.sh index 506d9ff..69589b2 100755 --- a/share/hackvr/examples/draw/draw.sh +++ b/share/hackvr/examples/draw/draw.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$USER move 0 0 -100" for y in $(seq 1 1 48);do diff --git a/share/hackvr/examples/filebrowser/backend-filebrowser.sh b/share/hackvr/examples/filebrowser/backend-filebrowser.sh index 789b601..7fdfc2e 100755 --- a/share/hackvr/examples/filebrowser/backend-filebrowser.sh +++ b/share/hackvr/examples/filebrowser/backend-filebrowser.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #give a list of files. #wait for a selection on stdin #cd or start that file diff --git a/share/hackvr/examples/filebrowser/backend-gopher.sh b/share/hackvr/examples/filebrowser/backend-gopher.sh index ab360da..fe73755 100755 --- a/share/hackvr/examples/filebrowser/backend-gopher.sh +++ b/share/hackvr/examples/filebrowser/backend-gopher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #give a list of files. #wait for a selection on stdin #cd or start that file diff --git a/share/hackvr/examples/filebrowser/backend-ps.sh b/share/hackvr/examples/filebrowser/backend-ps.sh index b06ff99..ac1eb47 100755 --- a/share/hackvr/examples/filebrowser/backend-ps.sh +++ b/share/hackvr/examples/filebrowser/backend-ps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #give a list of files. #wait for a selection on stdin #cd or start that file diff --git a/share/hackvr/examples/filebrowser/frontend-hackvr.sh b/share/hackvr/examples/filebrowser/frontend-hackvr.sh index 2b262a9..ff6264a 100755 --- a/share/hackvr/examples/filebrowser/frontend-hackvr.sh +++ b/share/hackvr/examples/filebrowser/frontend-hackvr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "_$1" = "_" ];then echo "I need an argument for what my backend is." >&2 exit 1 diff --git a/share/hackvr/examples/filebrowser/frontend-zenity.sh b/share/hackvr/examples/filebrowser/frontend-zenity.sh index cb1fa9d..44ae385 100755 --- a/share/hackvr/examples/filebrowser/frontend-zenity.sh +++ b/share/hackvr/examples/filebrowser/frontend-zenity.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "_$1" = "_" ];then echo "I need a backend script passed as first argument." >&2 exit 1 diff --git a/share/hackvr/examples/filebrowser/list_to_cubes.sh b/share/hackvr/examples/filebrowser/list_to_cubes.sh index be438b8..0dfca06 100755 --- a/share/hackvr/examples/filebrowser/list_to_cubes.sh +++ b/share/hackvr/examples/filebrowser/list_to_cubes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # blank lines deleteallexcept epoch # expected input format: # diff --git a/share/hackvr/examples/filebrowser/run b/share/hackvr/examples/filebrowser/run index 8829124..cc5a9df 100755 --- a/share/hackvr/examples/filebrowser/run +++ b/share/hackvr/examples/filebrowser/run @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash cd "$(dirname "$0")" ./frontend-hackvr.sh ./backend-gopher.sh $1 diff --git a/share/hackvr/examples/grid_floor.sh b/share/hackvr/examples/grid_floor.sh index 459c0e4..452163f 100755 --- a/share/hackvr/examples/grid_floor.sh +++ b/share/hackvr/examples/grid_floor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cat <(for i in $(seq 1 32);do for j in $(seq 1 32);do echo floor addshape 2 4 $i 0 $j $i 0 $[j+1] $[i+1] 0 $[j+1] $[i+1] 0 $j diff --git a/share/hackvr/examples/hackvr_term/run b/share/hackvr/examples/hackvr_term/run index cf39f77..9fcc247 100755 --- a/share/hackvr/examples/hackvr_term/run +++ b/share/hackvr/examples/hackvr_term/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mknod p p cat <(cat camera.pos | sed 's/USER/'"$USER"'/g') \ <(./hackvr_data_decode.sh <p \ diff --git a/share/hackvr/examples/hackvr_term/run.pty b/share/hackvr/examples/hackvr_term/run.pty index 73e24cb..1cfcf96 100755 --- a/share/hackvr/examples/hackvr_term/run.pty +++ b/share/hackvr/examples/hackvr_term/run.pty @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mknod p p cat <(cat camera.pos | sed 's/USER/'"$USER"'/g') \ <(./hackvr_data_decode.sh <p \ diff --git a/share/hackvr/examples/hackvrnet/connect.sh b/share/hackvr/examples/hackvrnet/connect.sh index fe66a1b..5f7b660 100755 --- a/share/hackvr/examples/hackvrnet/connect.sh +++ b/share/hackvr/examples/hackvrnet/connect.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash password=hackvr ncat 21.41.41.1 31337 -c 'hackvr "$USER"' 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 |