diff --git a/script/update_openfpm b/script/update_openfpm index 21463aae1e22d2c023fc4021b47725ffd1907ee7..1a74e98355bc5394974954d2e6b2b84fd88229b0 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)