From: Peter Palfrader Date: Fri, 6 Feb 2009 22:43:45 +0000 (+0000) Subject: Create Archive directory if it does not exist. Make sure mv knows we want to move... X-Git-Tag: tor-0.2.1.12-alpha~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a050da815b369eac14879237694bce8164034bd6;p=thirdparty%2Ftor.git Create Archive directory if it does not exist. Make sure mv knows we want to move stuff into a dir svn:r18411 --- 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