From 6478fcfadbff3f7b4f96b4ff5c7a7ead5ef9f65f Mon Sep 17 00:00:00 2001 From: Mayeu Date: Fri, 17 Apr 2026 17:05:37 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Allow=20to=20configure=20the=20inst?= =?UTF-8?q?all=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index b86e01d..8c8804d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,15 +1,17 @@ #!/bin/bash -mkdir -p bin +install_path="${INSTALL_PATH:-bin}" + +mkdir -p $install_path if [ "$(uname)" == "Darwin" ] && [ "$(uname -p)" == "arm" ]; then - curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos-arm -o bin/pretty-make - # See: https://github.com/Awea/pretty-make/issues/17#issuecomment-1252713764 - xattr -d com.apple.quarantine bin/pretty-make + curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos-arm -o "${install_path}/pretty-make" + # See: https://github.com/Awea/pretty-make/issues/17#issuecomment-1252713764 + xattr -d com.apple.quarantine "${install_path}/pretty-make" elif [ "$(uname)" == "Darwin" ]; then - curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos -o bin/pretty-make + curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos -o "${install_path}/pretty-make" elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-linux -o bin/pretty-make + curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-linux -o "${install_path}/pretty-make" fi -chmod 755 bin/pretty-make +chmod 755 "${install_path}/pretty-make"