From c3500f3b79387a95bb8bd39afdfca233a290e962 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sun, 3 Apr 2022 21:41:09 +1000 Subject: [PATCH] capture calling action --- functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions b/functions index 45a634a..2cc9639 100644 --- a/functions +++ b/functions @@ -3,6 +3,8 @@ # Rerun with sudo if needed [ $(id -u) = 0 ] || exec sudo $0 $@ +export ACTION="$(basename $0)" + # Function to write a message and exit with error code die() { echo "$*" >&2 -- 2.39.2