Script to update wordpress apps

missytake 2021-06-14 11:04:31 +02:00
parent 0c21beeac1
commit 137b5c21b9
1 changed files with 14 additions and 0 deletions

14
update-app.sh Executable file
View 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