summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-08-17 03:35:59 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-08-18 10:11:27 +0200
commite1312ec493ffaaf09ac63194de39cd64dfb9f4a4 (patch)
tree50a6248e4b58ef065e582a8046f35d3269d9d047
parente652dc8085314a1002305494078e4f276448e4a9 (diff)
downloaddevtools-e1312ec493ffaaf09ac63194de39cd64dfb9f4a4.tar.gz
devtools-e1312ec493ffaaf09ac63194de39cd64dfb9f4a4.tar.xz
archrelease: call svn rm only once
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xarchrelease8
1 files changed, 5 insertions, 3 deletions
diff --git a/archrelease b/archrelease
index 8da8b95..20ccd50 100755
--- a/archrelease
+++ b/archrelease
@@ -30,9 +30,11 @@ fi
echo -n "releasing package to ${1}..."
pushd .. >/dev/null
if [ -d "repos/${1}" ]; then
- for file in $(svn ls "repos/${1}"); do
- svn rm -q "repos/${1}/$file"
- done
+ declare -a trash
+ while read -r file; do
+ trash+=("repos/$1/$file")
+ done < <(svn ls "repos/$1")
+ svn rm -q "${trash[@]}"
fi
if [ ! -d repos ]; then
mkdir repos