From 4f36945dd75fa51d19c40b475be60a3aca4c3a37 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 10 Oct 2019 13:57:59 +0200 Subject: [PATCH] Adds forever script --- bin/forever | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/forever diff --git a/bin/forever b/bin/forever new file mode 100755 index 0000000..0dc243d --- /dev/null +++ b/bin/forever @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +while :; do + "$@" + + if [ $? -ne 0 ]; then + exit $? + fi +done