mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 05:53:09 +01:00
[fix] Run command being retried within quotes
This commit is contained in:
@@ -229,7 +229,7 @@ retry() {
|
|||||||
while [[ $attempt -lt $maxAttempts ]]; do
|
while [[ $attempt -lt $maxAttempts ]]; do
|
||||||
attempt=$((attempt+1))
|
attempt=$((attempt+1))
|
||||||
echo "Executing command with retry support: $cmd"
|
echo "Executing command with retry support: $cmd"
|
||||||
output=$($cmd)
|
output=$("$cmd")
|
||||||
exitcode=$?
|
exitcode=$?
|
||||||
echo "Results: $output ($exitcode)"
|
echo "Results: $output ($exitcode)"
|
||||||
if [ -n "$expectedOutput" ]; then
|
if [ -n "$expectedOutput" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user