From 506c1f292288a2b76e8655a7546127537042f1f9 Mon Sep 17 00:00:00 2001 From: Mustaque Ahmed Date: Wed, 25 May 2022 01:22:41 +0530 Subject: [PATCH 1/2] add commands in `test-create-block.sh` script to reproduce error --- bin/test-create-block.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bin/test-create-block.sh b/bin/test-create-block.sh index e17bdbb2d6694..f747b38d6a1eb 100755 --- a/bin/test-create-block.sh +++ b/bin/test-create-block.sh @@ -84,3 +84,18 @@ status "Linting JavaScript files..." status "Creating a plugin zip file..." ../node_modules/.bin/wp-scripts plugin-zip + +status "Printing the current working directory..." +pwd + +status "Checking if unzip command exists or not..." +unzip --help + +status "Trying to unzip example-static.zip file..." +mkdir zip-folder +cp example-static.zip zip-folder +cd zip-folder +unzip example-static.zip + +status "Printing the content of directory..." +ls -al From b5cb065793a003cb7b487be397660a6b13c559bb Mon Sep 17 00:00:00 2001 From: Mustaque Ahmed Date: Wed, 25 May 2022 01:33:27 +0530 Subject: [PATCH 2/2] add recursive flag to list items command --- bin/test-create-block.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/test-create-block.sh b/bin/test-create-block.sh index f747b38d6a1eb..e5a4c755a4d6c 100755 --- a/bin/test-create-block.sh +++ b/bin/test-create-block.sh @@ -98,4 +98,4 @@ cd zip-folder unzip example-static.zip status "Printing the content of directory..." -ls -al +ls -alR