X-Git-Url: https://iankelling.org/git/?p=log-quiet;a=blobdiff_plain;f=log-once;fp=log-once-function;h=f8938c83b23511eb211642b06ea24280fe60dd12;hp=abbec8be72d88691a4e1cf7f797e7bf102fabe1e;hb=8e2977d8ed9a02302be6481f1a3ac22d7ff23e5a;hpb=42cd7029f759835663a6bbae6fe141314d2a1b6d 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 "$@"