Changed aquarius-plugin

Jonathan Hodgson 7 years ago
parent 899d6e9e7e
commit 69e98a3362
  1. 74
      bin/aquarius-plugin

@ -17,15 +17,11 @@ while test $# -gt 0; do
echo -e "Aquarius Plugin installer" echo -e "Aquarius Plugin installer"
echo -e "Adds submodules for commonly used plugins" echo -e "Adds submodules for commonly used plugins"
echo -e "You can string multiple plugins together" echo -e "You can string multiple plugins together"
echo -e "e.g. aquariusPlugin yoast db-migrate blocks" echo -e "e.g. aquarius-plugin blocks clients"
echo "" echo ""
echo -e "-h, --help \t\t\t\t Show this help text" echo -e "-h, --help \t\t\t\t Show this help text"
echo -e "-r, --remove \t\t\t\t Remove any plugins after this flag" echo -e "-r, --remove \t\t\t\t Remove any plugins after this flag"
echo "" echo -e "-s, --ssh \t\t\t\t Adds the ssh version for the submodule url"
echo -e "yoast \t\t\t\t\t install yoast"
echo -e "db-migrate \t\t\t\t install db-migrate"
echo -e "cf7 \t\t\t\t\t install cf7"
echo -e "woo, woocommerce\t\t\t install woocommerce"
echo "" echo ""
echo -e "blocks, aquarius-blocks \t\t install aquarius blocks" echo -e "blocks, aquarius-blocks \t\t install aquarius blocks"
echo -e "clients, aquarius-clients \t\t install aquarius clients" echo -e "clients, aquarius-clients \t\t install aquarius clients"
@ -46,58 +42,9 @@ while test $# -gt 0; do
ssh=true ssh=true
shift shift
;; ;;
yoast)
if [ "$remove" = true ]; then
echo "attempting to remove yoast"
git-delete-submodule "wp-content/plugins/wordpress-seo"
else
echo "attempting to add yoast"
if [ "$ssh" = true ]; then
git submodule git@bitbucket.org:fellowshipproductionsltd/wordpress-seo.git wp-content/plugins/wordpress-seo
else
git submodule add https://bitbucket.org/fellowshipproductionsltd/wordpress-seo.git wp-content/plugins/wordpress-seo
fi
fi
shift
;;
db-migrate)
if [ "$remove" = true ]; then
git-delete-submodule "wp-content/plugins/wp-migrate-db"
else
if [ "$ssh" = true ]; then
git submodule add git@bitbucket.org:fellowshipproductionsltd/wp-migrate-db.git wp-content/plugins/wp-migrate-db
else
git submodule add https://bitbucket.org/fellowshipproductionsltd/wp-migrate-db.git wp-content/plugins/wp-migrate-db
fi
fi
shift
;;
cf7)
if [ "$remove" = true ]; then
git-delete-submodule "wp-content/plugins/contact-form-7"
else
if [ "$ssh" = true ]; then
git submodule add git@bitbucket.org:fellowshipproductionsltd/contact-form-7.git wp-content/plugins/contact-form-7
else
git submodule add https://bitbucket.org/fellowshipproductionsltd/contact-form-7.git wp-content/plugins/contact-form-7
fi
fi
shift
;;
woocommerce|woo)
if [ "$remove" = true ]; then
git-delete-submodule "wp-content/plugins/woocommerce"
else
if [ "$ssh" = true ]; then
git submodule add git@bitbucket.org:fellowshipproductionsltd/woocommerce.git wp-content/plugins/woocommerce
else
git submodule add https://bitbucket.org/fellowshipproductionsltd/woocommerce.git wp-content/plugins/woocommerce
fi
fi
shift
;;
aquarius-blocks|blocks) aquarius-blocks|blocks)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-blocks
git-delete-submodule "wp-content/plugins/aquarius-blocks" git-delete-submodule "wp-content/plugins/aquarius-blocks"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -105,11 +52,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-blocks.git wp-content/plugins/aquarius-blocks git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-blocks.git wp-content/plugins/aquarius-blocks
fi fi
npm install --save wp-content/plugins/aquarius-blocks
fi fi
shift shift
;; ;;
aquarius-clients|clients) aquarius-clients|clients)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-clients
git-delete-submodule "wp-content/plugins/aquarius-clients" git-delete-submodule "wp-content/plugins/aquarius-clients"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -117,11 +66,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-clients.git wp-content/plugins/aquarius-clients git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-clients.git wp-content/plugins/aquarius-clients
fi fi
npm install --save wp-content/plugins/aquarius-clients
fi fi
shift shift
;; ;;
aquarius-news|news) aquarius-news|news)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-news
git-delete-submodule "wp-content/plugins/aquarius-news" git-delete-submodule "wp-content/plugins/aquarius-news"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -129,11 +80,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-news.git wp-content/plugins/aquarius-news git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-news.git wp-content/plugins/aquarius-news
fi fi
npm install --save wp-content/plugins/aquarius-news
fi fi
shift shift
;; ;;
aquarius-people|people) aquarius-people|people)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-people
git-delete-submodule "wp-content/plugins/aquarius-people" git-delete-submodule "wp-content/plugins/aquarius-people"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -141,11 +94,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-people.git wp-content/plugins/aquarius-people git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-people.git wp-content/plugins/aquarius-people
fi fi
npm install --save wp-content/plugins/aquarius-people
fi fi
shift shift
;; ;;
aquarius-permissions|permissions) aquarius-permissions|permissions)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/mu-plugins/aquarius-permissions
git-delete-submodule "wp-content/mu-plugins/aquarius-permissions" git-delete-submodule "wp-content/mu-plugins/aquarius-permissions"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -153,11 +108,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-permissions.git wp-content/mu-plugins/aquarius-permissions git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-permissions.git wp-content/mu-plugins/aquarius-permissions
fi fi
npm install --save wp-content/mu-plugins/aquarius-permissions
fi fi
shift shift
;; ;;
aquarius-slider|slider) aquarius-slider|slider)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-slider
git-delete-submodule "wp-content/plugins/aquarius-slider" git-delete-submodule "wp-content/plugins/aquarius-slider"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -165,11 +122,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-slider.git wp-content/plugins/aquarius-slider git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-slider.git wp-content/plugins/aquarius-slider
fi fi
npm install --save wp-content/plugins/aquarius-slider
fi fi
shift shift
;; ;;
aquarius-snippets|snippets) aquarius-snippets|snippets)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-snippets
git-delete-submodule "wp-content/plugins/aquarius-snippets" git-delete-submodule "wp-content/plugins/aquarius-snippets"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -177,11 +136,13 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-snippets.git wp-content/plugins/aquarius-snippets git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-snippets.git wp-content/plugins/aquarius-snippets
fi fi
npm install --save wp-content/plugins/aquarius-snippets
fi fi
shift shift
;; ;;
aquarius-widgets|widgets) aquarius-widgets|widgets)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-widgets
git-delete-submodule "wp-content/plugins/aquarius-widgets" git-delete-submodule "wp-content/plugins/aquarius-widgets"
else else
if [ "$ssh" = true ]; then if [ "$ssh" = true ]; then
@ -189,6 +150,7 @@ while test $# -gt 0; do
else else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-widgets.git wp-content/plugins/aquarius-widgets git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-widgets.git wp-content/plugins/aquarius-widgets
fi fi
npm install --save wp-content/plugins/aquarius-widgets
fi fi
shift shift
;; ;;

Loading…
Cancel
Save