Skip to content
Snippets Groups Projects
Commit 9961e77d authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Enabling update option

parent bee58741
No related branches found
No related tags found
No related merge requests found
...@@ -28,24 +28,24 @@ function update_openfpm() ...@@ -28,24 +28,24 @@ function update_openfpm()
if [ x"$branch" == x"$actual_branch" ]; then if [ x"$branch" == x"$actual_branch" ]; then
git remote update git remote update
git status -uno | grep "nothing to commit" n_commit=$(git rev-list --count origin/$branch...$branch)
if [ $? -eq 0 ]; then if [ $n_commit -eq 0 ]; then
echo -e "\033[1m There are no-updates \033[0m" echo -e "\033[1m There are no-updates \033[0m"
return return
fi fi
fi fi
# git stash -u git stash -u
# git submodule foreach 'git stash' git submodule foreach 'git stash'
# git pull origin git pull origin
# git checkout $branch git checkout $branch
# git submodule update git submodule update
# sh autogen.sh sh autogen.sh
# ./config.status ./config.status
# make install make install
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment