archrelease: Remove redundant directory check

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Lukas Fleischer 2011-08-19 10:16:47 +02:00 committed by Pierre Schmitz
parent 7887d9bb47
commit b445920d55
1 changed files with 3 additions and 8 deletions

View File

@ -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