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

Fixing update

parent 7377e745
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ source script/update_openfpm
b_switch=$(cat switch_branch)
if [ x"$b_switch" != x"" ]; then
git checkout $b_switch
git checkout $b_switch
echo -e "Please relaunch ./install ..."
exit 0
fi
## Check that your home is not empty
......@@ -83,11 +85,6 @@ if [ x"$i_dir" == x"" ]; then
i_dir="$HOME"
fi
remove_old $i_dir
## Check and try to install the prerequisites
pre_req
if [ $update_openfpm -eq 1 -a $upgrade_openfpm -eq 1 ]; then
echo -e "\033[1;5;31m It is not possible to update and upgrade at the same time \033[0m"
......@@ -104,6 +101,11 @@ if [ $upgrade_openfpm -eq 1 ]; then
exit 0
fi
remove_old $i_dir
## Check and try to install the prerequisites
pre_req
## clone the dependencies
git submodule init
......
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