Add shell script linting with shellcheck for better portability
This commit is contained in:
parent
ab60e702d2
commit
886a6bdbe0
15 changed files with 87 additions and 57 deletions
|
@ -24,8 +24,8 @@ function ci_retry {
|
|||
until [ $n -ge $NRETRY ]
|
||||
do
|
||||
"$@" && break
|
||||
n=$[$n+1]
|
||||
echo "$@ failed, attempt ${n}/${NRETRY}"
|
||||
n=$((n+1))
|
||||
echo "${*} failed, attempt ${n}/${NRETRY}"
|
||||
sleep $NSLEEP
|
||||
done
|
||||
|
||||
|
@ -34,4 +34,3 @@ function ci_retry {
|
|||
}
|
||||
|
||||
export -f ci_retry
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue