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