From b02a0e9a9adf4a8d16f93b992f990ba028d034df Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Thu, 19 Apr 2018 19:16:42 +0200 Subject: [PATCH] Fixing update --- script/update_openfpm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/script/update_openfpm b/script/update_openfpm index 21463aae1..1a74e9835 100755 --- a/script/update_openfpm +++ b/script/update_openfpm @@ -42,12 +42,18 @@ function update_openfpm() for_opt="-c $for_opt" fi + if [ x"$1" == x"update" ]; then + git stash -u + git submodule foreach 'git stash' - git stash -u - git submodule foreach 'git stash' + git pull origin master + else + + rm -rf {,.[!.],..?}* + echo "Cloning Repo: $repo" + git clone $repo . - git pull origin - git submodule update + fi #### Check if we have to force upgrade force_up=$(cat force_upgrade) -- GitLab