Skip to content

Commit

Permalink
mkrelease: Remove zip file before recreating it
Browse files Browse the repository at this point in the history
Don't want to update an existing zip, always want a fresh one.
  • Loading branch information
DarkStarSword committed Sep 2, 2014
1 parent f6e161a commit f0b3fdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mkrelease.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e

# This script is intended to run from cygwin or native Unix to ensure that the
# symbolically linked DLLs are correctly resolved in the zip file.
Expand All @@ -11,4 +11,6 @@ if [ ! -d "$dir" ]; then
exit 1
fi

rm -fv "${game}.zip" || true

cd "$dir" && zip -9 -r "../${game}.zip" .

0 comments on commit f0b3fdd

Please sign in to comment.