From 579b141f40efce3ad1275f7df80c0112bdca91a6 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Thu, 30 Mar 2023 21:11:31 -0700 Subject: [PATCH] IT-111: Added zip and expand files on copy or zipping --- action.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.fish b/action.fish index ec3a478..983f636 100755 --- a/action.fish +++ b/action.fish @@ -50,6 +50,9 @@ set modName "Rampant" switch $argv[1] case copy echo "copying" + set zipName "$modFolder/$title.zip" + rm -f zipName + copyFiles "$modFolder/$title" if test -n "$_flag_serverDir" @@ -60,6 +63,7 @@ switch $argv[1] echo "zipping" end set zipName "$modFolder/$title.zip" + rm -rf "$modFolder/$title" rm -f zipName ln -s (pwd) $title @@ -70,7 +74,7 @@ switch $argv[1] if test -z "$_flag_silent" echo $zipProgress - end + end if test -n "$_flag_serverDir" cp $zipName $_flag_serverDir