From 96d8183057321ac5f729a60172f6cf36d89966d6 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Thu, 27 Oct 2011 20:02:11 -0400 Subject: [PATCH] maint: fixed bash shift bugs in release.sh and release-bm.sh --- maintainer/release-bm.sh | 9 +++++---- maintainer/release.sh | 5 +---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/maintainer/release-bm.sh b/maintainer/release-bm.sh index 57b05fcf..9cacbf2a 100755 --- a/maintainer/release-bm.sh +++ b/maintainer/release-bm.sh @@ -18,7 +18,7 @@ if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then echo "Note: You may wish to direct the output to a file, for" echo " later examination." echo - echo "Example: ./release-bm.sh binary-meta.tar.bz2 bmlocal" + echo "Example: ./release-bm.sh bmbuild binary-meta.tar.bz2 bmlocal" echo exit 1 fi @@ -33,9 +33,7 @@ TARBASE="$(basename "$1")" shift TARGETFILE="$1" -shift - -while [ -n "$TARGETFILE" ] ; do +while shift ; do if echo "$TARGETFILE" | grep root > /dev/null ; then # needs root su - -c "export BMTARBALL=$TARBALL && \ @@ -54,6 +52,9 @@ while [ -n "$TARGETFILE" ] ; do source $TARGETFILE fi + + # next! + TARGETFILE="$1" done echo diff --git a/maintainer/release.sh b/maintainer/release.sh index 5475691c..14e8adee 100755 --- a/maintainer/release.sh +++ b/maintainer/release.sh @@ -40,9 +40,7 @@ else fi TARGETFILE="$1" -shift - -while [ -n "$TARGETFILE" ] ; do +while shift ; do # Build the binary packages by running the target script if echo "$TARGETFILE" | grep root > /dev/null ; then # needs root @@ -65,7 +63,6 @@ while [ -n "$TARGETFILE" ] ; do # next! TARGETFILE="$1" - shift done echo -- 2.11.4.GIT