mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: fix retry function
This commit is contained in:
parent
cce95a4ab7
commit
f2850c54f1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user