1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

zsh: fix retry function

This commit is contained in:
bretello 2021-10-08 14:47:16 +02:00
parent cce95a4ab7
commit f2850c54f1
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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)