Commit 9961e77d authored by incardon's avatar incardon
Browse files

Enabling update option

parent bee58741
......@@ -28,24 +28,24 @@ function update_openfpm()
if [ x"$branch" == x"$actual_branch" ]; then
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"
return
fi
fi
# git stash -u
# git submodule foreach 'git stash'
git stash -u
git submodule foreach 'git stash'
# git pull origin
# git checkout $branch
# git submodule update
git pull origin
git checkout $branch
git submodule update
# sh autogen.sh
# ./config.status
# make install
sh autogen.sh
./config.status
make install
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment