Skip to content

Commit

Permalink
use find that works on busybox
Browse files Browse the repository at this point in the history
  • Loading branch information
danistrebel committed Jan 24, 2022
1 parent 01cbf2d commit a97f9d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/apigee-sackmesser/cmd/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/apigee-sackmesser/cmd/report/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ do
echo "<td>$policycount</td>" >> "$report_html"
echo "<td>$flowcount</td>" >> "$report_html"
echo "</tr>" >> "$report_html"
done < <(find "$export_folder/apigeelint/proxies/"*.json -print0)
done < <("$export_folder/apigeelint/proxies/"*.json -print0)

echo "</tbody></table></div>" >> "$report_html"

Expand Down

0 comments on commit a97f9d3

Please sign in to comment.