From: Ralph Ronnquist Date: Sun, 3 Apr 2022 11:41:09 +0000 (+1000) Subject: capture calling action X-Git-Tag: v0.1.5~11 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=c3500f3b79387a95bb8bd39afdfca233a290e962;p=rrq%2Foverlay-boot.git capture calling action --- 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