Last active
January 4, 2018 19:07
-
-
Save raftaar1191/2c593aa283b63c1f2d18d074719fd993 to your computer and use it in GitHub Desktop.
Shell script to download all the add-on at once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
cool!
#!/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
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 )