Skip to content

Instantly share code, notes, and snippets.

@raftaar1191
Last active January 4, 2018 19:07
Show Gist options
  • Save raftaar1191/2c593aa283b63c1f2d18d074719fd993 to your computer and use it in GitHub Desktop.
Save raftaar1191/2c593aa283b63c1f2d18d074719fd993 to your computer and use it in GitHub Desktop.
Shell script to download all the add-on at once
#!/bin/bash
array=(
"Give"
"Give-2Checkout"
"Give-Recurring-Donations"
"Give-Dwolla"
"Give-Email-Reports"
"Give-Fee-Recovery"
"Give-Form-Field-Manager"
"Give-Gift-Aid"
"Give-Manual-Donations"
"Give-PDF-Receipts"
"Give-Tributes"
"Give-Stripe"
# "Give-WePay"
"Give-Authorize-Gateway"
"Give-AWeber"
"Give-Braintree-Gateway"
"Give-CCAvenue"
"Give-ConvertKit"
"Give-CSV-Toolbox"
"Give-Display-Donors"
"Give-EOY-Statements"
"Give-Form-Countdown"
"Give-Google-Analytics"
"Give-iATS"
"Give-Paymill"
"Give-Per-Form-Confirmation-Messages"
"Give-MailChimp"
# "Give-WP-All-Import-Addon"
# "Google-Maps-Builder"
)
for element in ${array[@]}
do
# For username and password
# eval "git clone https://github.com/WordImpress/"$element".git"
# for SSH
eval "git clone git@github.com:raftaar1191/"$element".git"
cd $element
eval "git remote add upstream git@github.com:WordImpress/"$element".git"
eval "git reset --hard"
eval "git checkout master"
eval "git pull upstream master"
eval "git push origin master"
cd ..
done
@raftaar1191
Copy link
Author

raftaar1191 commented Dec 5, 2017

How to used:

Download the file and run sh give-install-addon.sh in that directory where the file is being download ( Notes file should not be zip )

@Benunc
Copy link

Benunc commented Dec 7, 2017

cool!

@raftaar1191
Copy link
Author

#!/bin/bash
array=( "Give" "Give-2Checkout" "Give-Dwolla" "Give-Email-Reports" "Give-Fee-Recovery" "Give-Form-Field-Manager" "Give-Gift-Aid" "Give-Manual-Donations" "Give-PDF-Receipts" "Give-Recurring-Donations" "Give-Tributes" "Give-Stripe" "Give-WePay" "Give-Authorize-Gateway" "Give-AWeber" "Give-Braintree-Gateway" "Give-CCAvenue" Give-ConvertKit" "Give-CSV-Toolbox" "Give-Display-Donors" "Give-EOY-Statements" "Give-Form-Countdown" "Give-Google-Analytics" "Give-iATS" "Give-Paymill" "Give-Per-Form-Confirmation-Messages" "Give-WePay" "Give-WP-All-Import-Addon" "Google-Maps-Builder" )
for element in ${array[@]}
do
# For username and password
# eval "git clone https://github.com/WordImpress/"$element".git"

# for SSH
# eval "git clone git@github.com:WordImpress/"$element".git"
# eval "git@github.com:raftaar1191/"$element".git"

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment