Skip to content

Commit cdfde5e

Browse files
committed
Fix update on multiple installs in same job
1 parent 7e98140 commit cdfde5e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/scripts/unix.sh‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ read_env() {
6363

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

6974
export fail_fast

0 commit comments

Comments
 (0)