Add shortcut for running a command in a loop.
This commit is contained in:
@@ -1106,6 +1106,15 @@
|
||||
status="$?"
|
||||
return "$status"
|
||||
}
|
||||
function_loop: |
|
||||
function loop {
|
||||
cmd="$1"
|
||||
while true; do
|
||||
$cmd
|
||||
done;
|
||||
}
|
||||
alias try="loop "
|
||||
|
||||
|
||||
- name: General | Account Management | Users | Files | Common Variable
|
||||
set_fact:
|
||||
@@ -1189,6 +1198,7 @@
|
||||
{{ alias_docker_other }}
|
||||
{{ alias_flatpak_clean }}
|
||||
{{ alias_commit }}
|
||||
{{ function_loop }}
|
||||
|
||||
- name: General | Account Management | Users | Files | .bashrc
|
||||
blockinfile:
|
||||
|
||||
Reference in New Issue
Block a user