From 45410ae8f096eae3649512ad8f4580b3d0e7f4bb Mon Sep 17 00:00:00 2001 From: Louis-Marie Michelin Date: Thu, 1 Sep 2022 18:20:00 +0200 Subject: [PATCH] fix: make symfony-cli installation faster on linux --- src/scripts/tools/symfony.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/tools/symfony.sh b/src/scripts/tools/symfony.sh index 559a0676d..a4cfefa05 100644 --- a/src/scripts/tools/symfony.sh +++ b/src/scripts/tools/symfony.sh @@ -1,11 +1,11 @@ add_symfony_helper() { - if command -v brew >/dev/null; then - add_brew_tap symfony-cli/homebrew-tap - brew install symfony-cli/tap/symfony-cli - else + if [ "$(uname -s)" = "Linux" ]; then 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:?}" 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 }