diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-02-06 22:43:45 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2009-02-06 22:43:45 +0000 |
commit | a050da815b369eac14879237694bce8164034bd6 (patch) | |
tree | 0a833dd6bdcdff095e7bc16766af107c0ec0c86c /contrib/directory-archive | |
parent | 88d6e6035d0656d264f5a527686a1fdb5a7d71f9 (diff) | |
download | tor-a050da815b369eac14879237694bce8164034bd6.tar.gz tor-a050da815b369eac14879237694bce8164034bd6.zip |
Create Archive directory if it does not exist. Make sure mv knows we want to move stuff into a dir
svn:r18411
Diffstat (limited to 'contrib/directory-archive')
-rwxr-xr-x | contrib/directory-archive/tar-them-up | 6 |
1 files 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 |