[fix] Run command being retried within quotes

This commit is contained in:
William Wernert
2021-02-01 11:28:28 -05:00
parent 02f0ef989b
commit 44617fdddf

View File

@@ -229,7 +229,7 @@ retry() {
while [[ $attempt -lt $maxAttempts ]]; do
attempt=$((attempt+1))
echo "Executing command with retry support: $cmd"
output=$($cmd)
output=$("$cmd")
exitcode=$?
echo "Results: $output ($exitcode)"
if [ -n "$expectedOutput" ]; then