From 5ff4dc73dec3ec2dff9183d1678ced073f00946c Mon Sep 17 00:00:00 2001 From: 0d0 <0d0acre@esiliati.org> Date: Wed, 26 Feb 2025 16:18:52 +0100 Subject: [PATCH] Update install script to accept proxy --- scripts/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 2d83a7c..57b2ff4 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -4,12 +4,17 @@ ### of `scaricatore`. PROJECT_ROOT=$1 +PROXY=$2 if [ -z ${PROJECT_ROOT+x} ]; then - echo "error no project_root set" + echo "ERROR: No PROJECT_ROOT set (first argument to ${0})" exit 1 fi +if [ -z ${PROXY+x} ]; then + echo "INFO: no proxy given" +fi + mkdir -p "${PROJECT_ROOT}" cd "${PROJECT_ROOT}" || exit 1 @@ -25,3 +30,4 @@ rm build.tar.gz npm ci npm run download-yt-dlp echo "YTDLP_PATH=$(readlink -f yt-dlp)" >>.env +echo "HTTPS_PROXY=${PROXY}" >>.env