Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

Commit 3a3e9bb

Browse files
committed
Fix package build when archive doesn't exist
1 parent 8a1bc84 commit 3a3e9bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ fi
4141
if [[ "$command" == "package" ]]; then
4242
echo -e "${cyan}Building package archive for version:${no_color} $(cat version.txt)"
4343
archive=nginx-jwt.tar.gz
44+
if [ -f $archive ] ; then
4445
rm $archive
46+
fi
4547

4648
tar cvf $archive ./nginx-jwt.lua
4749
tar rvf $archive ./version.txt

0 commit comments

Comments
 (0)