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

Testing upgrade fix

parent 4f0f9efa
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,16 @@ function update_openfpm()
fi
fi
dir_prev_inst=$(cat dependencies_dir)
for_opt=$(cat foward_options)
if [ x"$dir_prev_inst" != x"" ]; then
dir_prev_inst="-i $dir_prev_inst"
fi
if [ x"$foward_options" != x"" ]; then
foward_options="-c $foward_options"
fi
git stash -u
git submodule foreach 'git stash'
......@@ -57,14 +67,6 @@ function update_openfpm()
echo -e "To make the update active do: \033[1m make install \033[0m"
fi
else
dir_prev_inst=$(cat dependencies_dir)
for_opt=$(cat foward_options)
if [ x"$dir_prev_inst" != x"" ]; then
dir_prev_inst="-i $dir_prev_inst"
fi
if [ x"$foward_options" != x"" ]; then
foward_options="-c $foward_options"
fi
./install $dir_prev_inst $foward_options
fi
......
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