From e1312ec493ffaaf09ac63194de39cd64dfb9f4a4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 16 Aug 2011 21:35:59 -0400 Subject: archrelease: call svn rm only once Signed-off-by: Dave Reisner Signed-off-by: Pierre Schmitz --- archrelease | 8 +++++--- 1 file 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 -- cgit v1.2.3-70-g09d2