mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:30:44 +00:00
test(release): retry post-update version probes
This commit is contained in:
@@ -1729,7 +1729,11 @@ openclaw_version_with_retry() {
|
||||
version=""
|
||||
last_output=""
|
||||
for attempt in 1 2 3 4 5 6 7 8 9 10 11 12; do
|
||||
if version="\$("\$bin" --version 2>&1)"; then
|
||||
set +e
|
||||
version="\$("\$bin" --version 2>&1)"
|
||||
status=\$?
|
||||
set -e
|
||||
if [ "\$status" -eq 0 ]; then
|
||||
printf '%s\n' "\$version"
|
||||
if [ -z "\$expected" ] || [[ "\$version" == *"\$expected"* ]]; then
|
||||
return 0
|
||||
@@ -1878,7 +1882,11 @@ openclaw_version_with_retry() {
|
||||
version=""
|
||||
last_output=""
|
||||
for attempt in 1 2 3 4 5 6 7 8 9 10 11 12; do
|
||||
if version="\$("\$bin" --version 2>&1)"; then
|
||||
set +e
|
||||
version="\$("\$bin" --version 2>&1)"
|
||||
status=\$?
|
||||
set -e
|
||||
if [ "\$status" -eq 0 ]; then
|
||||
printf '%s\n' "\$version"
|
||||
if [ -z "\$expected" ] || [[ "\$version" == *"\$expected"* ]]; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user