Fixed Non-Interactive Installers

This commit is contained in:
2026-05-10 18:54:44 +02:00
parent c2bccebbf4
commit 2d95828b3f

View File

@@ -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