mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 02:20:12 +01:00
contrib: fix detection of whether being sourced in NM-log script
This commit is contained in:
parent
487b5df716
commit
0bff8d7710
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue