Fix try.sh scripts; use command(1) instead of which.
This commit is contained in:
1 parent
4b08755e4a
commit
40f2141aef
25 files changed
+25
-25
No files matched your search
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ fi
|
|||||||
#
|
#
|
||||||
read -r -n 1 -p "Press any key to when ready: "
|
read -r -n 1 -p "Press any key to when ready: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# select a game
|
# select a game
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ fi
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ fi
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all tipple >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all tipple >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program and the alt program have been built
|
# make sure the program and the alt program have been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ if [[ -z "$CC" ]]; then
|
|||||||
CC="cc"
|
CC="cc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to form foo: "
|
read -r -n 1 -p "Press any key to form foo: "
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program and the alt program have been built
|
# make sure the program and the alt program have been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" alt >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" alt >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program and the alt program have been built
|
# make sure the program and the alt program have been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program and the alt program have been built
|
# make sure the program and the alt program have been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" everything >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" alt >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" alt >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ fi
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# make sure the program has been built
|
# make sure the program has been built
|
||||||
#
|
#
|
||||||
MAKE=$(which gmake)
|
MAKE=$(command -v gmake)
|
||||||
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
${MAKE:=make} CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
# clear the screen
|
# clear the screen
|
||||||
|
|||||||
Reference in new issue
Block a user