diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2015-09-24 15:10:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-09-24 16:28:15 +0200 |
commit | 2a4a222d95c2f5025509dd49ef382d9e987a2275 (patch) | |
tree | ce68d63a4e86d85ff65cc36d01d7cc68e5cc0837 | |
parent | 1b7196ec51c5a369f32e8d471d8837900695ddd3 (diff) | |
download | NetworkManager-2a4a222d95c2f5025509dd49ef382d9e987a2275.tar.gz |
tools/check-exports.sh: use ${NM} when available
This way you can export NM to use a prefixed tool
https://bugzilla.gnome.org/show_bug.cgi?id=755540
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rwxr-xr-x | tools/check-exports.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-exports.sh b/tools/check-exports.sh index 0022752280..b645d3799d 100755 --- a/tools/check-exports.sh +++ b/tools/check-exports.sh @@ -12,7 +12,7 @@ TMPFILE="$(mktemp .nm-check-exports.XXXXXX)" get_syms() { - nm "$1" | + ${NM:-nm} "$1" | sed -n 's/^[[:xdigit:]]\+ [DT] //p' | sort } |