From 02e7af742041c045f4bae3739ca265e67f68b84e Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 24 Jun 2022 15:34:00 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20modified:=20files/run.s?= =?UTF-8?q?h=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/run.sh b/files/run.sh index f3590fc..cbd73fa 100644 --- a/files/run.sh +++ b/files/run.sh @@ -37,7 +37,9 @@ fi if [ -d "/var/lib/wordpress/devel" ]; then echo "[i] Initializing plugin development dir" - for d in $(ls /var/lib/wordpress/devel); do + plugins="$(ls /var/lib/wordpress/devel)" + [ -d "/usr/html/wp-content/plugins" ] || mkdir -p "/usr/html/wp-content/plugins" + for d in $plugins; do ln -sf "/var/lib/wordpress/devel/$d" "/usr/html/wp-content/plugins/$d" done fi