summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-10-26 14:22:44 +0200
committerThomas Haller <thaller@redhat.com>2019-10-26 14:22:44 +0200
commit0bff8d771060b209b80aede7c6fa08f63584f7c1 (patch)
tree79a7ca702927e7fea19b4a4f7da5ff19633fe992 /contrib
parent487b5df7169895cf132997b0bc7f402479043066 (diff)
downloadNetworkManager-0bff8d771060b209b80aede7c6fa08f63584f7c1.tar.gz
contrib: fix detection of whether being sourced in NM-log script
Diffstat (limited to 'contrib')
-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