fix BASH_SOURCE checking

enable sourcing of functions
pull/153/head
Tony Heckmann 2020-06-26 13:29:48 -04:00 committed by GitHub
parent a12ea54861
commit 129d50a303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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