mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Merge pull request #641 from lmichelin/master
🐞 Bug Fix: make symfony-cli installation faster on Linux
This commit is contained in:
commit
633321754d
@ -1,11 +1,11 @@
|
|||||||
add_symfony_helper() {
|
add_symfony_helper() {
|
||||||
if command -v brew >/dev/null; then
|
if [ "$(uname -s)" = "Linux" ]; then
|
||||||
add_brew_tap symfony-cli/homebrew-tap
|
|
||||||
brew install symfony-cli/tap/symfony-cli
|
|
||||||
else
|
|
||||||
arch=$(dpkg --print-architecture)
|
arch=$(dpkg --print-architecture)
|
||||||
get -s -n "" "https://github.com/symfony-cli/symfony-cli/releases/latest/download/symfony-cli_linux_$arch.tar.gz" | sudo tar -xz -C "${tool_path_dir:?}"
|
get -s -n "" "https://github.com/symfony-cli/symfony-cli/releases/latest/download/symfony-cli_linux_$arch.tar.gz" | sudo tar -xz -C "${tool_path_dir:?}"
|
||||||
sudo chmod a+x /usr/local/bin/symfony
|
sudo chmod a+x /usr/local/bin/symfony
|
||||||
|
elif [ "$(uname -s)" = "Darwin" ]; then
|
||||||
|
add_brew_tap symfony-cli/homebrew-tap
|
||||||
|
brew install symfony-cli/tap/symfony-cli
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user