This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit 6a8666b4aa778801d40a86fd32c966f3b698f7ec Author: Mihai Moldovan <ionic@ionic.de> Date: Fri Apr 21 23:51:56 2017 +0200 bin/createsusetagsrepo: change bash array usage slightly. --- bin/build-rpm-package | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 8995a35..a1efb07 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -399,7 +399,7 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET # Extras repo. typeset -i i=0 for ((i = 0; i < ${#extra_repo[@]}; ++i)); do - echo "${extra_repo[${i}]}" >> "${TMP_MOCK_CFG_FILE}" + echo "${extra_repo[i]}" >> "${TMP_MOCK_CFG_FILE}" done # Full repo if required. @@ -408,7 +408,7 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET typeset -i i=0 for ((i = 0; i < ${#full_repo[@]}; ++i)); do - echo "${full_repo[${i}]}" >> "${TMP_MOCK_CFG_FILE}" + echo "${full_repo[i]}" >> "${TMP_MOCK_CFG_FILE}" done fi @@ -1081,21 +1081,21 @@ upload_packages() { while IFS='.' read -ra read_arr; do for i in "${#read_arr[@]}"; do if [ "${i}" = "0" ]; then - major="${read_arr[${i}]}" + major="${read_arr[i]}" - [ "${major}" != "${read_arr[${i}]}" ] && { + [ "${major}" != "${read_arr[i]}" ] && { echo "Major SUSE version is not a valid integer, aborting." >&2 exit 1 } elif [ "${i}" = "1" ]; then - sp="${read_arr[${i}]}" + sp="${read_arr[i]}" - [ "${sp}" != "${read_arr[${i}]}" ] && { + [ "${sp}" != "${read_arr[i]}" ] && { echo "SUSE service pack version is not a valid integer, aborting." >&2 exit 1 } else - other="${other}.${read_arr[${i}]}" + other="${other}.${read_arr[i]}" fi done done <<< "${l_CODENAME}" -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git