diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-16 08:10:26 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-17 15:55:54 +0200 |
commit | c2dbb421713ef776987b29f96d11488d6d7d630c (patch) | |
tree | e689e8322294da88e7aefce1055013845e4b2d1d /bin | |
parent | 049f14fa10620b65b25ad408f8333d487a56912b (diff) | |
download | ptxdist-c2dbb421713ef776987b29f96d11488d6d7d630c.tar.gz ptxdist-c2dbb421713ef776987b29f96d11488d6d7d630c.tar.xz |
ptxdist: impove error message for config failures
Use the command-line order for 'config' and 'part'. Drop whitespace if
'part' is empty.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 2ff289a10..0ec9ad53d 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1487,7 +1487,7 @@ do_config() local retval=${?} if [ ${retval} -ne 0 ]; then echo - echo "${PTXDIST_LOG_PROMPT}'${part} ${config}' returned with an error" + echo "${PTXDIST_LOG_PROMPT}'${config}${part:+ }${part}' returned with an error" echo if [ -n "${PTX_MENU}" ]; then read |