[devscripts] 01/01: cowpoke: Use a less ugly contruct to append to the arrays

Ron Lee ron at moszumanska.debian.org
Mon Jul 7 18:56:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

ron pushed a commit to branch master
in repository devscripts.

commit f142dcd6b7a8be37039da0037fc3f216e1f802b2
Author: Ron <ron at debian.org>
Date:   Tue Jul 8 04:26:03 2014 +0930

    cowpoke: Use a less ugly contruct to append to the arrays
---
 scripts/cowpoke.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/cowpoke.sh b/scripts/cowpoke.sh
index e1d2422..61c5674 100755
--- a/scripts/cowpoke.sh
+++ b/scripts/cowpoke.sh
@@ -223,19 +223,19 @@ for arg; do
 	    # who want to stuff up their own system with input they created themselves.
 	    val=${arg#*=}
 	    [[ $val == \'*\' || $val == \"*\" ]] && val=${val:1:-1}
-	    DEBBUILDOPTS[${#DEBBUILDOPTS[@]}]=$val
+	    DEBBUILDOPTS+=( "$val" )
 	    ;;
 
 	--create-opts=*)
-	    OVERRIDE_CREATE_OPTS[${#OVERRIDE_CREATE_OPTS[@]}]="${arg#*=}"
+	    OVERRIDE_CREATE_OPTS+=( "${arg#*=}" )
 	    ;;
 
 	--update-opts=*)
-	    OVERRIDE_UPDATE_OPTS[${#OVERRIDE_UPDATE_OPTS[@]}]="${arg#*=}"
+	    OVERRIDE_UPDATE_OPTS+=( "${arg#*=}" )
 	    ;;
 
 	--build-opts=*)
-	    OVERRIDE_BUILD_OPTS[${#OVERRIDE_BUILD_OPTS[@]}]="${arg#*=}"
+	    OVERRIDE_BUILD_OPTS+=( "${arg#*=}" )
 	    ;;
 
 	*.dsc)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list