From d536634ccf2e5f09824cd662bdd99ae9c6090e71 Mon Sep 17 00:00:00 2001 From: krumel Date: Mon, 13 Jun 2022 19:17:00 +0200 Subject: [PATCH] delete old archives --- refreshmods.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/refreshmods.sh b/refreshmods.sh index d9156e5..b5b0160 100755 --- a/refreshmods.sh +++ b/refreshmods.sh @@ -17,7 +17,8 @@ ls ~/Games/Minecraft/modpack_dev/user >> modlist.md gawk -i inplace 1 ORS='\n\n' modlist.md echo "Zip the mods" -tar -czvf /tmp/krumels_pack_dev_$(date -Idate -u).tar.gz mods +rm /tmp/krumels_pack_dev_$(date -Idate -u).tar.gz +tar -czvf /tmp/krumels_pack_dev_$(date -Idate -u).tar.gz mods config echo "Move mods to the webroot" rsync -e ssh /tmp/krumels_pack_dev_$(date -Idate -u).tar.gz minecraft@krumel.moe:~/webroot/mods