From 86e7315da6de064d44ed3ed7907d6fcee1df9b1a Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 13 Apr 2021 03:11:08 +0530 Subject: [PATCH] Replace bintray with jsdelivr for scripts --- src/scripts/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/common.sh b/src/scripts/common.sh index f46634b7..091587b6 100644 --- a/src/scripts/common.sh +++ b/src/scripts/common.sh @@ -12,7 +12,7 @@ export composer_json="$HOME/.composer/composer.json" export composer_lock="$HOME/.composer/composer.lock" export latest="releases/latest/download" export github="https://github.com/shivammathur" -export bintray="https://dl.bintray/shivammathur" +export jsdeliver="https://cdn.jsdelivr.net/gh/shivammathur" # Function to log start of a operation. step_log() { @@ -73,12 +73,12 @@ get() { fi } -# Function to download and run scripts from GitHub releases with bintray fallback. +# Function to download and run scripts from GitHub releases with jsdeliver fallback. run_script() { repo=$1 shift args=("$@") - get -q -e /tmp/install.sh "$github/$repo/$latest/install.sh" "$bintray/php/$repo.sh" + get -q -e /tmp/install.sh "$github/$repo/$latest/install.sh" "$jsdeliver/$1@main/scripts/install.sh" bash /tmp/install.sh "${args[@]}" }