Skip to content

Commit

Permalink
Fix update on multiple installs in same job
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Dec 23, 2024
1 parent 7e98140 commit cdfde5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scripts/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ read_env() {

# Set Update to true if the ubuntu github image does not have PHP PPA.
if [[ "$runner" = "github" && "${ImageOS}" =~ ubuntu.* ]]; then
check_ppa ondrej/php || update=true
if ! check_ppa ondrej/php; then
update=true
echo '' | sudo tee /tmp/sp_update >/dev/null 2>&1
elif [ -e /tmp/sp_update ]; then
update=true
fi
fi

export fail_fast
Expand Down

0 comments on commit cdfde5e

Please sign in to comment.