diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-03 02:45:00 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-03 02:45:00 +0200 |
commit | 69d4443031fa9cdc34811265738d4dcd47a4eb21 (patch) | |
tree | 9f0e48e761868ded118b5947807c52e8f9818fa5 /bin/build-rpm-package | |
parent | 4dc4759fa371810413dc6ff1c1dc381bc8b952f2 (diff) | |
download | buildscripts-69d4443031fa9cdc34811265738d4dcd47a4eb21.tar.gz buildscripts-69d4443031fa9cdc34811265738d4dcd47a4eb21.tar.bz2 buildscripts-69d4443031fa9cdc34811265738d4dcd47a4eb21.zip |
bin/build-rpm-package: change bash array name to lowercase.
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-x | bin/build-rpm-package | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index af4eacd..6b30126 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -573,13 +573,14 @@ clear_pkgdist() { build_packages() { # Do NOT spawn a subshell here. Functions like get_extra_repository() need to # change global variables in the main process. - typeset -a RPM_BUILD_FOR_ARR + typeset -a rpm_build_for_arr typeset OLDIFS="${IFS}" IFS=" " - read -a RPM_BUILD_FOR_ARR <<< "${RPM_BUILD_FOR}" + read -a rpm_build_for_arr <<< "${RPM_BUILD_FOR}" IFS="${OLDIFS}" - for line in "${RPM_BUILD_FOR_ARR[@]}"; do + typeset line="" + for line in "${rpm_build_for_arr[@]}"; do l_DIST="$(cut -d":" -f1 <<< "${line/: /:}" | tr [:upper:] [:lower:])" l_CODENAMES="${CODENAMES:-$(cut -d":" -f2- <<< "${line/: /:}" | sed -e 's/,/ /g' | tr [:upper:] [:lower:])}" grep -qs "${l_DIST}" <<< "${RPM_DISTS_SUPPORTED}" && { |