Log error when fail to execute command in with-retry()

This commit is contained in:
Zihong Zheng 2017-07-13 14:56:16 -07:00
parent f818cbeaed
commit 722c3e348c

View File

@ -40,6 +40,8 @@ function with-retry() {
sleep 3 sleep 3
done done
echo "Failed to execute '${cmd[@]}' for $retry_limit times." >&2
return ${rc} return ${rc}
} }