mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 16:53:35 +00:00
Multiple scripts, go packages, shared configs...
Documentation, links, renaming files for clarity, and all that.
This commit is contained in:
15
local/bin/x-until-error
Executable file
15
local/bin/x-until-error
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# About
|
||||
# -----
|
||||
# Repeat the command until it fails - always run at least once.
|
||||
#
|
||||
|
||||
"$@"
|
||||
|
||||
#
|
||||
# If the status code was zero then repeat.
|
||||
#
|
||||
while [ $? -eq 0 ]; do
|
||||
"$@"
|
||||
done
|
||||
Reference in New Issue
Block a user