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