mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-04 14:13:16 +07:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
975f42da8e | |||
fae7892ed3 | |||
2a44b78bb8 | |||
494d047fa5 | |||
3ca32c6b64 |
@ -241,7 +241,7 @@ version=$1
|
|||||||
nodot_version=${1/./}
|
nodot_version=${1/./}
|
||||||
old_versions="5.[3-5]"
|
old_versions="5.[3-5]"
|
||||||
tool_path_dir="/usr/local/bin"
|
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)
|
existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
|
||||||
|
|
||||||
read_env
|
read_env
|
||||||
|
@ -398,7 +398,7 @@ debconf_fix="DEBIAN_FRONTEND=noninteractive"
|
|||||||
github="https://github.com/shivammathur"
|
github="https://github.com/shivammathur"
|
||||||
apt_install="sudo $debconf_fix apt-fast install -y"
|
apt_install="sudo $debconf_fix apt-fast install -y"
|
||||||
tool_path_dir="/usr/local/bin"
|
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)
|
existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
|
||||||
|
|
||||||
read_env
|
read_env
|
||||||
|
@ -19,7 +19,7 @@ add_protoc() {
|
|||||||
[ "$(uname -s)" = "Darwin" ] && platform='osx'
|
[ "$(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"
|
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 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
|
) >/dev/null 2>&1
|
||||||
add_log "${tick:?}" "protoc" "Added"
|
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"
|
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