diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 08:17:10 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-06-09 16:48:34 +0200 |
commit | 2d9b8d308db02c0af28e5906c9cb0653809aea17 (patch) | |
tree | fda6f6e633879e8d26099909a369a507cad91e9b | |
parent | 5dfa5e72f5a56fd2e4823dd645b45e5208f513b6 (diff) | |
download | ptxdist-2d9b8d308db02c0af28e5906c9cb0653809aea17.tar.gz ptxdist-2d9b8d308db02c0af28e5906c9cb0653809aea17.tar.xz |
[ptxdist] really fix things for older bash versionsptxdist-2010.05.3
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
(cherry picked from commit e7a10caaf129111b2a01f65ba38863e10d802dc7)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rwxr-xr-x | bin/ptxdist | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 49e65560a..fda077008 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1099,19 +1099,21 @@ newpackage() { ;; esac - local iargs + local -a author_iargs section_iargs if echo | read -i foo -p bar -e > /dev/null 2>&1; then - iargs=("-i" "${PTXCONF_SETUP_USER_NAME} <${PTXCONF_SETUP_USER_EMAIL}>") + author_iargs=("-i" "${PTXCONF_SETUP_USER_NAME} <${PTXCONF_SETUP_USER_EMAIL}>") + section_iargs=("-i" "project_specific") else - iargs=() + author_iargs=() + section_iargs=() fi local author read -e -p "${PTXDIST_LOG_PROMPT}enter package author.....: " \ - "${iargs[@]}" author + "${author_iargs[@]}" author local section read -e -p "${PTXDIST_LOG_PROMPT}enter package section....: " \ - -i "project_specific" section + "${section_iargs[@]}" section local package_filename="${package_name}" local package="$(echo ${package_name} | tr "[A-Z]" "[a-z]")" |