From a97f9d3297fc9067747c17de9c4aec84f92ec141 Mon Sep 17 00:00:00 2001 From: Daniel Strebel Date: Mon, 24 Jan 2022 13:33:02 +0100 Subject: [PATCH] use find that works on busybox --- tools/apigee-sackmesser/cmd/deploy/deploy.sh | 4 ++-- tools/apigee-sackmesser/cmd/report/report.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/apigee-sackmesser/cmd/deploy/deploy.sh b/tools/apigee-sackmesser/cmd/deploy/deploy.sh index dbf920820..bb6d3ba3e 100755 --- a/tools/apigee-sackmesser/cmd/deploy/deploy.sh +++ b/tools/apigee-sackmesser/cmd/deploy/deploy.sh @@ -122,7 +122,7 @@ skip_deployment=true #skip maven deploy unless bundle contains proxy or shared f if [ -d "$temp_folder/apiproxy" ]; then loginfo "Configuring API Proxy" - if [ -z "$(find "$temp_folder/apiproxy" -type f -name "*.xml" -d 1)" ]; then + if [ -z "$(find "$temp_folder/apiproxy" -type f -name "*.xml" -maxdepth 1 -mindepth 1)" ]; then if [ -z "$bundle_name" ]; then bundle_name=$(basename "$source_dir") fi @@ -155,7 +155,7 @@ elif [ -d "$temp_folder/sharedflowbundle" ]; then skip_deployment=false - if [ -z "$(find "$temp_folder/sharedflowbundle" -type f -name "*.xml" -d 1)" ]; then + if [ -z "$(find "$temp_folder/sharedflowbundle" -type f -name "*.xml" -maxdepth 1 -mindepth 1)" ]; then if [ -z "$bundle_name" ]; then bundle_name=$(basename "$source_dir") fi diff --git a/tools/apigee-sackmesser/cmd/report/report.sh b/tools/apigee-sackmesser/cmd/report/report.sh index 70c74ae68..87fff9b4c 100755 --- a/tools/apigee-sackmesser/cmd/report/report.sh +++ b/tools/apigee-sackmesser/cmd/report/report.sh @@ -204,7 +204,7 @@ do echo "$policycount" >> "$report_html" echo "$flowcount" >> "$report_html" echo "" >> "$report_html" -done < <(find "$export_folder/apigeelint/proxies/"*.json -print0) +done < <("$export_folder/apigeelint/proxies/"*.json -print0) echo "" >> "$report_html"