summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-06-05 13:30:26 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-06-05 13:30:28 +0200
commitf8ba11608734770fcf61f8ee2716f14aff276b7f (patch)
treeae291553ebbc632821671d50633535b7bb8fe749 /bin/ptxdist
parent0b004414806043d2f38da440c5ae2be58d4c2272 (diff)
downloadptxdist-f8ba11608734770fcf61f8ee2716f14aff276b7f.tar.gz
ptxdist-f8ba11608734770fcf61f8ee2716f14aff276b7f.tar.xz
ptxdist: print: handle empty shell variables
Shell variables can be defined but empty. In this case, don't try to handle the variable in 'make' but print the empty value instead. This is a lot faster for such variables, e.g. PTXDIST_COLLECTIONCONFIG. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 6b789d9a7..72f87596f 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1853,7 +1853,7 @@ EOF
fi
exec {tmpfd}>&1
while [ ${#} -gt 0 ]; do
- if [[ ! ( "${1}" =~ "/" ) ]] && ([ -n "${!1}" ]) 2>/dev/null; then
+ if [[ ! ( "${1}" =~ "/" ) ]] && ([ -n "${!1+set}" ]) 2>/dev/null; then
if [ "${PTXDIST_VERBOSE}" = "1" ]; then
echo -n "${1}="
fi