Add more eval statements
This commit is contained in:
parent
a91d263316
commit
17f6da52cf
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ download_with_retry() {
|
||||||
echo "Failed to download $output or file is empty. Retrying... ($attempt/$max_retries)"
|
echo "Failed to download $output or file is empty. Retrying... ($attempt/$max_retries)"
|
||||||
|
|
||||||
# Delete the incomplete or zero-byte file if the download fails
|
# 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))
|
attempt=$((attempt + 1))
|
||||||
fi
|
fi
|
||||||
|
@ -75,7 +75,7 @@ download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/AWSParser
|
||||||
|
|
||||||
|
|
||||||
# Set executable permissions
|
# 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"
|
echo "Installation Completed"
|
||||||
vsleep 5
|
vsleep 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue