From 404458c02497f0aaffa9a68da7f96679d90026ba Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Jan 2025 16:56:23 -0500 Subject: [PATCH] updated name for locater method --- scripts/core/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 85a8fac8..4f56f70b 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -136,7 +136,7 @@ if [ -z "$skip_all" ]; then # attempts to find a script by the name passed in, as either a function or an alias. # if the alias points directly at a script file, then that will be printed to stdout. - function locate_script() + function locater() { local script_name="$1"; shift maybe_found="$(type "$script_name" | sed -n -r -e "s/^.*is aliased to .[^ ]+ (.*).$/\1/p")" -- 2.34.1