From 26a936137f67843cb773bc9b9e8c360d5abff65f Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Mon, 28 Feb 2022 15:07:40 -0500 Subject: Git pull operations that fail should now stop the build process correctly. --- player/tasks.f90 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'player') diff --git a/player/tasks.f90 b/player/tasks.f90 index de73b01..832e345 100644 --- a/player/tasks.f90 +++ b/player/tasks.f90 @@ -315,10 +315,14 @@ contains ! Check that nothing went wrong so far... if(res) then res = shell("git checkout "//trim(branch), directory, capture_filename) - if(res) then - res = shell("git pull", directory, capture_filename) - res = shell("git submodule update", directory, capture_filename) - end if + end if + + if(res) then + res = shell("git pull", directory, capture_filename) + end if + + if(res) then + res = shell("git submodule update", directory, capture_filename) end if git_update = res -- cgit v1.2.3