From c45f918c635ea6f8d947f5e7bb7f646656c89b30 Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 6 Feb 2019 01:20:43 -0600 Subject: changed the shebang from /bin/bash to /usr/bin/env bash on a lot of the examples. --- share/hackvr/examples/anonet_map.sh | 2 +- share/hackvr/examples/chess/board.sh | 2 +- share/hackvr/examples/chess/run | 2 +- share/hackvr/examples/draw/draw.sh | 2 +- share/hackvr/examples/filebrowser/backend-filebrowser.sh | 2 +- share/hackvr/examples/filebrowser/backend-gopher.sh | 2 +- share/hackvr/examples/filebrowser/backend-ps.sh | 2 +- share/hackvr/examples/filebrowser/frontend-hackvr.sh | 2 +- share/hackvr/examples/filebrowser/frontend-zenity.sh | 2 +- share/hackvr/examples/filebrowser/list_to_cubes.sh | 2 +- share/hackvr/examples/filebrowser/run | 2 +- share/hackvr/examples/grid_floor.sh | 2 +- share/hackvr/examples/hackvr_term/run | 2 +- share/hackvr/examples/hackvr_term/run.pty | 2 +- share/hackvr/examples/hackvrnet/connect.sh | 2 +- share/hackvr/examples/tictactoe/game.sh | 4 ++-- share/hackvr/examples/tictactoe/run | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) (limited to 'share') 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

&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 -- cgit v1.2.3