Skip to content

Commit b9d625c

Browse files
committed
Simplify "$image" calculation in Travis based on Python's
1 parent b599d73 commit b9d625c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ before_script:
5353
- env | sort
5454
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
5555
- cd "$VERSION/$VARIANT"
56-
- SUBVARIANT="${VARIANT#*/}"
57-
- image="php:${VERSION}-${SUBVARIANT}-${VARIANT%/*}"
56+
- slash='/'; image="php:${VERSION}-${VARIANT//$slash/-}"
5857

5958
script:
6059
- |

0 commit comments

Comments
 (0)