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