mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 08:46:39 +00:00
Clean up untilfail executable
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
count=1
|
||||
echo "====> Attempt $count"
|
||||
$@
|
||||
(( count++ ))
|
||||
while [ $? -eq 0 ]; do
|
||||
echo "====> Attempt $count"
|
||||
$@
|
||||
while "$@"; do
|
||||
(( count++ ))
|
||||
echo "====> Attempt $count"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user