Small fixes

missytake 2021-06-14 11:07:30 +02:00
parent 137b5c21b9
commit b83d8226a5
1 changed files with 11 additions and 1 deletions

View File

@ -1,14 +1,24 @@
#!/bin/sh
# fail script if one command fails
set -e
# we need at least one argument
if [ $# -eq 0 ]
then
echo "usage: ./update-app.sh \$app"
exit 0
fi
APP=$1
# download app
cd ~/wp-content/plugins
wget https://downloads.wordpress.org/plugin/$APP.zip
# install app
rm -rf $APP
unzip $APP.zip
# clean up
rm $APP.zip