parent
e6451c7472
commit
c17ed429be
6 changed files with 52 additions and 10 deletions
@ -0,0 +1,22 @@ |
||||
#!/bin/bash |
||||
|
||||
### |
||||
### Common functions for CI builder files. |
||||
### All functions can be accessed in install.sh via: |
||||
### |
||||
### $ source /ci/common.sh |
||||
### |
||||
|
||||
set -e |
||||
|
||||
dub_fetch() { |
||||
set +e |
||||
for (( i=1; i<=24; ++i )); do |
||||
dub fetch "$@" |
||||
(( $? == 0 )) && break |
||||
|
||||
echo "Dub Fetch failed. Retrying in $((i*5))s" |
||||
sleep $((i*5)) |
||||
done |
||||
set -e |
||||
} |
@ -0,0 +1,12 @@ |
||||
#!/bin/bash |
||||
|
||||
set -e |
||||
|
||||
testFN() { |
||||
set +e |
||||
false |
||||
} |
||||
|
||||
testFN |
||||
false |
||||
exit 0 |
Loading…
Reference in new issue