File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- function fetch_pear() {
4
- if [ -n $GITHUB_TOKEN ]; then
5
- auth_flag=" -H 'Authorization: token $GITHUB_TOKEN '"
6
- fi
7
-
8
- latest_tag=$( curl -sSfL --retry 20 " ${auth_flag} " https://api.github.com/repos/pear/pearweb_phars/releases/latest | jq -r .tag_name)
9
- curl -sSfL " ${auth_flag} " --retry 20 -O https://raw.githubusercontent.com/pear/pearweb_phars/${latest_tag} /go-pear.phar
10
-
11
- if [ ! -f go-pear.phar ]; then
12
- echo " Latest PEAR tarball not found"
13
- exit 1
14
- fi
15
- }
16
-
17
3
set -o errexit
18
4
19
5
if [[ ! $VERSION ]] ; then
@@ -35,7 +21,7 @@ php-build -i development "${VERSION}" "${INSTALL_DEST}/${VERSION}"
35
21
pushd " ${INSTALL_DEST} /${VERSION} "
36
22
37
23
# pear
38
- fetch_pear
24
+ curl -fsSL --retry 20 -O http://pear.php.net/go-pear.phar
39
25
40
26
env TZ=UTC $TRAVIS_BUILD_DIR /bin/install-pear
41
27
rm go-pear.phar
You can’t perform that action at this time.
0 commit comments