summaryrefslogtreecommitdiffstats
path: root/archrelease.in
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-10-12 16:26:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-10-12 16:53:08 +0200
commitfe2040cd145344bfbe006e89c79348cce2ad2e13 (patch)
tree3e4bd36ae71619696d9feb34906afbddd2e0b7bd /archrelease.in
parenta991c9a71f92aa24fd445e6189a6ac07c4ddb77c (diff)
downloaddevtools-fe2040cd145344bfbe006e89c79348cce2ad2e13.tar.gz
devtools-fe2040cd145344bfbe006e89c79348cce2ad2e13.tar.xz
archrelease: Fix SVN error when repository is empty
If trash is empty, `svn rm -q "${trash[@]}"` fails with: svn: Try 'svn help' for more info and then svn: Not enough arguments provided This doesn't result in any further malfunction but is kind of confusing and unexpected. Skipping `svn rm` on an empty trash fixes this. Reported-by: Alexander Rødseth <rodseth@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'archrelease.in')
-rw-r--r--archrelease.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/archrelease.in b/archrelease.in
index 7bb4c8a..2f7725e 100644
--- a/archrelease.in
+++ b/archrelease.in
@@ -46,7 +46,7 @@ for tag in "$@"; do
while read -r file; do
trash+=("repos/$tag/$file")
done < <(svn ls "repos/$tag")
- svn rm -q "${trash[@]}"
+ [[ $trash ]] && svn rm -q "${trash[@]}"
else
mkdir -p "repos/$tag"
svn add --parents -q "repos/$tag"