mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-25 03:11:40 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
19 lines
298 B
Bash
Executable File
19 lines
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright IBM Corp. 2016, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
set -uo pipefail
|
|
|
|
tries=5
|
|
count=0
|
|
|
|
until "$@"
|
|
do
|
|
if [ $count -eq $tries ]; then
|
|
echo "tried $count times, exiting"
|
|
exit 1
|
|
fi
|
|
((count++))
|
|
echo "trying again, attempt $count"
|
|
sleep $count
|
|
done
|