contrib: fix detection of whether being sourced in NM-log script

This commit is contained in:
Thomas Haller
2019-10-26 14:22:44 +02:00
parent 487b5df716
commit 0bff8d7710

View File

@@ -13,7 +13,7 @@
#
# You can pass multiple filenames.
if [[ "$_" == "$0" ]]; then
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
NM_not_sourced=1
else
unset NM_not_sourced