|
|
@ -4,7 +4,7 @@ |
|
|
|
remove=false |
|
|
|
remove=false |
|
|
|
|
|
|
|
|
|
|
|
# default to https plugins |
|
|
|
# default to https plugins |
|
|
|
ssh=false |
|
|
|
ssh=true |
|
|
|
|
|
|
|
|
|
|
|
# Cd to public html foder |
|
|
|
# Cd to public html foder |
|
|
|
cd ${PWD%/public_html*}/public_html |
|
|
|
cd ${PWD%/public_html*}/public_html |
|
|
@ -42,6 +42,10 @@ while test $# -gt 0; do |
|
|
|
ssh=true |
|
|
|
ssh=true |
|
|
|
shift |
|
|
|
shift |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
--no-ssh) |
|
|
|
|
|
|
|
ssh=false |
|
|
|
|
|
|
|
shift |
|
|
|
|
|
|
|
;; |
|
|
|
aquarius-blocks|blocks) |
|
|
|
aquarius-blocks|blocks) |
|
|
|
if [ "$remove" = true ]; then |
|
|
|
if [ "$remove" = true ]; then |
|
|
|
npm remove wp-content/plugins/aquarius-blocks |
|
|
|
npm remove wp-content/plugins/aquarius-blocks |
|
|
@ -112,6 +116,20 @@ while test $# -gt 0; do |
|
|
|
fi |
|
|
|
fi |
|
|
|
shift |
|
|
|
shift |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
aquarius-projects|projects) |
|
|
|
|
|
|
|
if [ "$remove" = true ]; then |
|
|
|
|
|
|
|
npm remove wp-content/plugins/aquarius-slider |
|
|
|
|
|
|
|
git-delete-submodule "wp-content/plugins/aquarius-projects" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
if [ "$ssh" = true ]; then |
|
|
|
|
|
|
|
git submodule add git@bitbucket.org:fellowshipproductionsltd/aquarius-projects.git wp-content/plugins/aquarius-projects |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-projects.git wp-content/plugins/aquarius-projects |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
npm install --save wp-content/plugins/aquarius-projects |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
shift |
|
|
|
|
|
|
|
;; |
|
|
|
aquarius-slider|slider) |
|
|
|
aquarius-slider|slider) |
|
|
|
if [ "$remove" = true ]; then |
|
|
|
if [ "$remove" = true ]; then |
|
|
|
npm remove wp-content/plugins/aquarius-slider |
|
|
|
npm remove wp-content/plugins/aquarius-slider |
|
|
|