Fixed Non-Interactive Installers
This commit is contained in:
9
setup.sh
9
setup.sh
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
URI="https://git.scypher.org/taicrafter/helperScripts/raw/branch/main/"
|
URI="https://git.scypher.org/taicrafter/helperScripts/raw/branch/main"
|
||||||
function _promptBool(){
|
function _promptBool(){
|
||||||
while true; do
|
while true; do
|
||||||
read -r -p "$1 [y/n]: " res < /dev/tty
|
read -r -p "$1 [y/n]: " res < /dev/tty
|
||||||
@@ -41,9 +41,10 @@ function AppInstaller(){
|
|||||||
while IFS= read -r APPNAME; do
|
while IFS= read -r APPNAME; do
|
||||||
#Handle Install
|
#Handle Install
|
||||||
if _promptBool "Install $APPNAME?"; then
|
if _promptBool "Install $APPNAME?"; then
|
||||||
echo "Downloading Installer: $URI/$OS_TYPE/$APPNAME.sh"
|
SOURCE="$URI/$OS_TYPE/installers/$APPNAME.sh"
|
||||||
curl -fsSL "$URI/$OS_TYPE/$APPNAME.sh" -o "$TMP_FILE"
|
echo "Downloading Installer: $SOURCE"
|
||||||
bash "$TMP_FILE"
|
curl -fsSL "$SOURCE" -o "$TMP_FILE"
|
||||||
|
bash "$TMP_FILE" < /dev/tty
|
||||||
fi
|
fi
|
||||||
done <<< "$APPS"
|
done <<< "$APPS"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user