X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=archive.sh;fp=archive.sh;h=4a6d785d589d326050625e6b1b2cca52fd542aaa;hp=4a205a2d8da307f46aa2aadc9a4dd2d89b957059;hb=de7a0a45d872450fc96614c51a1ad2670d01be5a;hpb=c9709be14cb6f88c5c8c41b26c805d0acfd4d45b diff --git a/archive.sh b/archive.sh index 4a205a2..4a6d785 100755 --- a/archive.sh +++ b/archive.sh @@ -18,9 +18,10 @@ for name in browser shell vcs vim x11; do git_clone $name tmp/dotfiles/$name done -echo creating dotfiles.tar -tar cf tmp/dotfiles.tar -C tmp dotfiles -echo moving dotfiles.tar to . -mv tmp/dotfiles.tar . +archive=dotfiles.tar.gz +echo creating $archive +tar cf tmp/$archive -C tmp -z dotfiles +echo moving $archive to . +mv tmp/$archive . rm -rf tmp