Skip to content

Instantly share code, notes, and snippets.

@dallaslu dallaslu/package.sh
Created Oct 9, 2015

Embed
What would you like to do?
#!bin/sh
git_foler=~/workspace/$2
if [ ! -d "$git_foler" ]; then
mkdir -p "$git_foler"
echo "cd" $git_foler
group_folder=`dirname $git_foler`
cd $group_folder
echo "git clone" git@192.168.1.4:$2.git
git clone git@192.168.1.4:$2.git
else
echo "cd" $git_foler
cd $git_foler
git pull
fi
git checkout $1
pom_path=`find . -name "pom.xml"`
#echo $pom_path
pom_path=`dirname $pom_path`
#echo $pom_path
cd $pom_path
mvn package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.