Skip to content

Instantly share code, notes, and snippets.

@reneolivo
Created April 15, 2021 11:40
Show Gist options
  • Save reneolivo/8f5f1bcd82a1e2f051fbde421456960c to your computer and use it in GitHub Desktop.
Save reneolivo/8f5f1bcd82a1e2f051fbde421456960c to your computer and use it in GitHub Desktop.
CiviCRM Extension Downloader

Usage

download-extension uk.co.compucorp.civicase https://github.com/compucorp/uk.co.compucorp.civicase/archive/1.14.0.zip
rm -r -f $1
wget -O ./temp-ext-file.zip $2
unzip ./temp-ext-file.zip -d ./temp-ext-folder
rm ./temp-ext-file.zip
find ./temp-ext-folder -type d -name "$1*" -exec mv {} ./$1 \; # needs refactoring
rm -r -f ./temp-ext-folder
git add $1
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment