zsh: fix retry function

pull/6/head
bretello 2021-10-08 14:47:16 +02:00
parent cce95a4ab7
commit f2850c54f1
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ fvim() {
function retry() {
local _retry_interval
if [[ -z "$RETRY_INTERVAL" ]]; then _retry_interval=1; else _retry_interval=$RETRY_INTERVAL; fi
until $@; do sleep $RETRY_INTERVAL; done
until $@; do sleep $_retry_interval; done
}
# Creats a gitignore for the given argument (e.g. python, cpp, etc)