From 8e2977d8ed9a02302be6481f1a3ac22d7ff23e5a Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 23 Aug 2016 23:43:18 -0700 Subject: [PATCH] make log-once be script instead of function --- log-once-function => log-once | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename log-once-function => log-once (98%) mode change 100644 => 100755 diff --git a/log-once-function b/log-once old mode 100644 new mode 100755 similarity index 98% rename from log-once-function rename to log-once index abbec8b..f8938c8 --- a/log-once-function +++ b/log-once @@ -90,11 +90,13 @@ state in the same directory. $out $file <<<"${output[@]}" $out $file fi - exit 1 + return 1 elif [[ -f $c$errors ]]; then echo "log-once success after failure for $c" rm -f $c$errors else rm -f $c[0-9]* # assuming no one is putting crazy files names, as this is not exact fi + return 0 } +log-once "$@" -- 2.30.2