15 lines
195 B
Bash
15 lines
195 B
Bash
|
#!/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
|
||
|
|