Always install wp-cli/restful package before bulk uploading

This commit is contained in:
2024-08-12 09:42:08 +10:00
parent acb1c47d68
commit 78cb6bf077

View File

@@ -11,6 +11,8 @@ WP_FLAGS="--allow-root --path=/var/www/html"
path="$1" path="$1"
wp package install wp-cli/restful $WP_FLAGS
if test -d "$path"; then if test -d "$path"; then
echo "Found $path, starting upload." echo "Found $path, starting upload."
for file in "$path"/*.jpg; do for file in "$path"/*.jpg; do