1
0
Fork 0
dotfiles/home/dot_local/bin/executable_until-success

17 lines
209 B
Plaintext
Raw Normal View History

2021-04-10 20:37:16 +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