From 129d50a3038aad272c876e66f0da29b4fafaa14a Mon Sep 17 00:00:00 2001 From: Tony Heckmann Date: Fri, 26 Jun 2020 13:29:48 -0400 Subject: [PATCH] fix BASH_SOURCE checking enable sourcing of functions --- bashtop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashtop b/bashtop index 977ba04..4536c35 100755 --- a/bashtop +++ b/bashtop @@ -4791,7 +4791,7 @@ if [[ $use_psutil == true ]]; then fi #* if we have been sourced by another shell, quit. Allows sourcing only function definition. -[[ "${#BASH_SOURCE[@]}" -gt 1 ]] && { return 0; } +[[ "${#BASH_SOURCE[@]}" -ge 1 ]] && { return 0; } #* Setup psutil script if [[ $use_psutil == true ]]; then