mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-01 12:43:17 +07:00
Compare commits
5 Commits
more-verbo
...
2.4.1
Author | SHA1 | Date | |
---|---|---|---|
975f42da8e | |||
fae7892ed3 | |||
2a44b78bb8 | |||
494d047fa5 | |||
3ca32c6b64 |
@ -241,7 +241,7 @@ version=$1
|
||||
nodot_version=${1/./}
|
||||
old_versions="5.[3-5]"
|
||||
tool_path_dir="/usr/local/bin"
|
||||
curl_opts=(-sSL --retry 5 --retry-delay 1)
|
||||
curl_opts=(-sL)
|
||||
existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
|
||||
|
||||
read_env
|
||||
|
@ -398,7 +398,7 @@ debconf_fix="DEBIAN_FRONTEND=noninteractive"
|
||||
github="https://github.com/shivammathur"
|
||||
apt_install="sudo $debconf_fix apt-fast install -y"
|
||||
tool_path_dir="/usr/local/bin"
|
||||
curl_opts=(-sSL --retry 5 --retry-delay 1)
|
||||
curl_opts=(-sL)
|
||||
existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
|
||||
|
||||
read_env
|
||||
|
@ -19,7 +19,7 @@ add_protoc() {
|
||||
[ "$(uname -s)" = "Darwin" ] && platform='osx'
|
||||
curl -o /tmp/protobuf.zip "${curl_opts[@]:?}" "https://github.com/protocolbuffers/protobuf/releases/download/$protobuf_tag/protoc-${protobuf_tag:1}-$platform-x86_64.zip"
|
||||
sudo unzip /tmp/protobuf.zip -d /usr/local/
|
||||
sudo chmod a+x /usr/local/bin/protoc
|
||||
sudo chmod 777 /usr/local/bin/protoc -R /usr/local/include/google
|
||||
) >/dev/null 2>&1
|
||||
add_log "${tick:?}" "protoc" "Added"
|
||||
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "protoc" "Click to read the protoc related license information"
|
||||
|
Reference in New Issue
Block a user