mirror of
https://github.com/versity/versitygw.git
synced 2026-09-28 02:44:29 +00:00
test: convert post-file-delete setup commands to REST
This commit is contained in:
@@ -27,8 +27,15 @@ send_command() {
|
||||
fi
|
||||
# shellcheck disable=SC2154
|
||||
echo "${masked_args[*]}" >> "$COMMAND_LOG"
|
||||
"$@"
|
||||
return $?
|
||||
fi
|
||||
"$@"
|
||||
local command_result=0
|
||||
"$@" || command_result=$?
|
||||
if [ "$command_result" -ne 0 ]; then
|
||||
if [ "$1" == "curl" ]; then
|
||||
echo ", curl response code: $command_result"
|
||||
elif [ "$command_result" -ne 1 ]; then
|
||||
echo " ($1 response code: $command_result)"
|
||||
fi
|
||||
fi
|
||||
return $command_result
|
||||
}
|
||||
Reference in New Issue
Block a user