summaryrefslogtreecommitdiff
path: root/archrelease
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-08-19 10:16:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-08-25 11:09:01 +0200
commitb445920d55a21f23a960f6ef23750f6e13dbed77 (patch)
treed74182c98c2ea1863d1abfaf6aa172699ae86bcd /archrelease
parent7887d9bb4725946fc4fff546cccf7838fc27e04a (diff)
archrelease: Remove redundant directory check
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'archrelease')
-rwxr-xr-xarchrelease11
1 files changed, 3 insertions, 8 deletions
diff --git a/archrelease b/archrelease
index af75b8f..ec7545e 100755
--- a/archrelease
+++ b/archrelease
@@ -37,14 +37,9 @@ if [[ -d repos/$1 ]]; then
trash+=("repos/$1/$file")
done < <(svn ls "repos/$1")
svn rm -q "${trash[@]}"
-fi
-if [[ ! -d repos ]]; then
- mkdir repos
- svn add -q repos
-fi
-if [[ ! -d "repos/$1" ]]; then
- mkdir "repos/${1}"
- svn add -q "repos/${1}"
+else
+ mkdir -p "repos/${1}"
+ svn add --parents -q "repos/${1}"
fi
IFS=$'\n' read -r -d '' -a known_files < <(svn ls "trunk")
for file in "${known_files[@]}"; do