From 17f6da52cf56f96324cb1b38f7c9ff2ce83a3915 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 23 Nov 2024 02:17:48 -0700 Subject: [PATCH] Add more eval statements --- installscript.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installscript.sh b/installscript.sh index 4ef3f55..1eff55d 100644 --- a/installscript.sh +++ b/installscript.sh @@ -44,7 +44,7 @@ download_with_retry() { echo "Failed to download $output or file is empty. Retrying... ($attempt/$max_retries)" # Delete the incomplete or zero-byte file if the download fails - $SUDO_CMD rm -f "$output" + eval "$SUDO_CMD rm -f \"$output\"" attempt=$((attempt + 1)) fi @@ -75,7 +75,7 @@ download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/AWSParser # Set executable permissions -$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen,regedit,awsparser} +eval "$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen,regedit,awsparser}" echo "Installation Completed" vsleep 5