summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-10-13 13:40:13 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-10-21 11:00:56 +0200
commite43159bfd9ab137cf2304dc70d70082a07d18bdb (patch)
treedcb45f56e81527320a2002ff89f1d05d609f5640 /bin
parent2fc1d7551c005ebba020becf02475b16d17a9b81 (diff)
downloadptxdist-e43159bfd9ab137cf2304dc70d70082a07d18bdb.tar.gz
ptxdist-e43159bfd9ab137cf2304dc70d70082a07d18bdb.tar.xz
ptxdist: fix printing variables that are not valid shell variable names
Otherwise printing variables such as PACKAGES-y fails with ptxdist: line 2042: PACKAGES-y: bad substitution Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 734087d71..de70aa32d 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2039,7 +2039,7 @@ EOF
exit 1
fi
while [ ${#} -gt 0 ]; do
- if [[ ! ( "${1}" =~ "/" ) ]] && [ -n "${!1}" ]; then
+ if [[ ! ( "${1}" =~ "/" ) ]] && ([ -n "${!1}" ]) 2>/dev/null; then
if [ "${PTXDIST_VERBOSE}" = "1" ]; then
echo -n "${1}="
fi