From a050da815b369eac14879237694bce8164034bd6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 6 Feb 2009 22:43:45 +0000 Subject: [PATCH] Create Archive directory if it does not exist. Make sure mv knows we want to move stuff into a dir svn:r18411 --- contrib/directory-archive/tar-them-up | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/directory-archive/tar-them-up b/contrib/directory-archive/tar-them-up index 2e0f6ec03f..2775ca9ee9 100755 --- a/contrib/directory-archive/tar-them-up +++ b/contrib/directory-archive/tar-them-up @@ -114,12 +114,14 @@ done +[ -d Archive ] || mkdir Archive + for kind in consensus status; do t="$kind"es-$year-$month.tar.bz2 - ! [ -e Archive/"$t" ] && mv "$t" Archive + ! [ -e Archive/"$t" ] && mv "$t" Archive/"$t" done for kind in extra-infos server-descriptors; do t="$kind"-$year-$month.tar.bz2 - ! [ -e Archive/"$t" ] && mv "$t" Archive + ! [ -e Archive/"$t" ] && mv "$t" Archive/"$t" done