diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 08:17:10 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 17:39:22 +0200 |
commit | e7a10caaf129111b2a01f65ba38863e10d802dc7 (patch) | |
tree | 6f98c4dd27572df1e0f395bd6c5a389a28685986 /bin | |
parent | 3bed5b2a096d05948c722b48331e1fb84a474de4 (diff) | |
download | ptxdist-e7a10caaf129111b2a01f65ba38863e10d802dc7.tar.gz ptxdist-e7a10caaf129111b2a01f65ba38863e10d802dc7.tar.xz |
[ptxdist] really fix things for older bash versions
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-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]")" |