mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Create Archive directory if it does not exist. Make sure mv knows we want to move stuff into a dir
svn:r18411
This commit is contained in:
parent
88d6e6035d
commit
a050da815b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user