From 137b5c21b9344f383f728b791ca975c15d737449 Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 14 Jun 2021 11:04:31 +0200 Subject: [PATCH] Script to update wordpress apps --- update-app.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 update-app.sh diff --git a/update-app.sh b/update-app.sh new file mode 100755 index 0000000..c4c6e3a --- /dev/null +++ b/update-app.sh @@ -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 +