From d1020b9a510c09ef27849169c68387b9b6f13f36 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 26 Aug 2014 17:36:50 -0500 Subject: [PATCH] Working on fixing the packaging script --- build/linux/package.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/linux/package.sh b/build/linux/package.sh index 4a0394d..10182b3 100755 --- a/build/linux/package.sh +++ b/build/linux/package.sh @@ -34,10 +34,11 @@ packageProject () VERSION=$(head -1 ./version.info) RELEASE="$PWD/target" -#make sure release exists -if [ ! -d $RELEASE ]; then - mkdir $RELEASE +#make sure release exists and is empty +if [ -d $RELEASE ]; then + rm -R $RELEASE fi +mkdir $RELEASE packageProject $VERSION "./cli" $RELEASE packageProject $VERSION "./gui" $RELEASE