summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/scripts/NM-log2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/NM-log b/contrib/scripts/NM-log
index 89f7021328..a36ff35e0a 100755
--- a/contrib/scripts/NM-log
+++ b/contrib/scripts/NM-log
@@ -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