Add more eval statements

This commit is contained in:
zontreck 2024-11-23 02:17:48 -07:00
parent a91d263316
commit 17f6da52cf

View file

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