Files
dotfiles/local/bin/x-until-error
Ismo Vuorinen bb3f4a8f6c Many updates and improvements
- yamllint
- shfmt config
- fix Go bin path
- fix git credentials config
- add nvm default packages
- updated Brewfile
2023-03-28 15:27:44 +03:00

13 lines
177 B
Bash
Executable File

#!/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