Script to update wordpress apps
This commit is contained in:
parent
5e5dfadd0b
commit
87969095f1
14
update-app.sh
Executable file
14
update-app.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ $# -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "usage: ./update-app.sh \$app"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
APP=$1
|
||||||
|
|
||||||
|
cd ~/wp-content/plugins
|
||||||
|
wget https://downloads.wordpress.org/plugin/$APP.zip
|
||||||
|
rm -rf $APP
|
||||||
|
unzip $APP.zip
|
||||||
|
|
Loading…
Reference in a new issue