Skip to content

Commit

Permalink
Replace bintray with jsdelivr for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Apr 13, 2021
1 parent 0741f2b commit 86e7315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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[@]}"
}

Expand Down

0 comments on commit 86e7315

Please sign in to comment.