From b445920d55a21f23a960f6ef23750f6e13dbed77 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 19 Aug 2011 10:16:47 +0200 Subject: archrelease: Remove redundant directory check Signed-off-by: Lukas Fleischer Signed-off-by: Pierre Schmitz --- archrelease | 11 +++-------- 1 file 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 -- cgit v1.2.3-70-g09d2