Created
August 2, 2018 16:34
-
-
Save oskosk/4783e7dc20b9619aa23d59023aa37508 to your computer and use it in GitHub Desktop.
jetpack deployer v1
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 | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install lts/carbon | |
TEMPO=`mktemp -d` | |
cd $TEMPO && | |
git clone https://github.com/Automattic/jetpack --depth=1 && \ | |
cd jetpack && | |
npm install -g yarn && | |
yarn build-production &&\ | |
yarn distclean &&\ | |
cp -a $TEMPO/jetpack ~/apps/$USER/public/wp-content/plugins/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment