Skip to content

Instantly share code, notes, and snippets.

@zoilomora
Created March 30, 2020 08:52
Show Gist options
  • Save zoilomora/f6bc7d5c24e06c44ff8ce62b0b9ffa85 to your computer and use it in GitHub Desktop.
Save zoilomora/f6bc7d5c24e06c44ff8ce62b0b9ffa85 to your computer and use it in GitHub Desktop.
Script to execution loop with output if it fails
#!/bin/sh
set -e
while true
do
eval "$@"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment