1
0
Fork 0
dotfiles/files/bin/until-success

17 lines
209 B
Plaintext
Raw Normal View History

2020-09-02 19:58:19 +00:00
#!/bin/bash
function stop() {
echo "Stopping"
exit 0
}
while true; do
echo "Starting $1"
trap - SIGINT
$@
trap stop SIGINT
echo -e "\nPress enter to restart $1..."
read
done