Modifying script to use tar instead of unzip

it's more compatible with linux not requiring special packages installed
This commit is contained in:
Clebert Suconic 2016-06-09 13:21:28 -04:00
parent 0c73bbc969
commit 4fd27d97d7
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
# This script will validate the distribution works with folders with spaces on Linux machines
rm -rf target/with\ space
rm -rf target
mkdir target
mkdir target/with\ space
@ -29,9 +29,9 @@ set -e
export CURRENT_DIR=`pwd`
if [ $# -eq 0 ]; then
export LOCAL_USED=`ls ../../../target/apache-artemis-*bin.zip`
export LOCAL_USED=`ls ../../../target/apache-artemis-*bin.tar.gz`
echo Unziping $LOCAL_USED
unzip $LOCAL_USED -d "./target/with space"
tar -zxf $LOCAL_USED -C "./target/with space"
cd "./target/with space"
export ARTEMIS_HOME="`pwd`/`ls`"
echo home is $ARTEMIS_HOME
@ -67,7 +67,7 @@ sleep 5
./artemis stop
sleep 5
./artemis data print
./artemis data print > data.log
./artemis data compact
./artemis data exp