Skip to content

Commit a97f9d3

Browse files
committed
use find that works on busybox
1 parent 01cbf2d commit a97f9d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/apigee-sackmesser/cmd/deploy/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ skip_deployment=true #skip maven deploy unless bundle contains proxy or shared f
122122
if [ -d "$temp_folder/apiproxy" ]; then
123123
loginfo "Configuring API Proxy"
124124

125-
if [ -z "$(find "$temp_folder/apiproxy" -type f -name "*.xml" -d 1)" ]; then
125+
if [ -z "$(find "$temp_folder/apiproxy" -type f -name "*.xml" -maxdepth 1 -mindepth 1)" ]; then
126126
if [ -z "$bundle_name" ]; then
127127
bundle_name=$(basename "$source_dir")
128128
fi
@@ -155,7 +155,7 @@ elif [ -d "$temp_folder/sharedflowbundle" ]; then
155155

156156
skip_deployment=false
157157

158-
if [ -z "$(find "$temp_folder/sharedflowbundle" -type f -name "*.xml" -d 1)" ]; then
158+
if [ -z "$(find "$temp_folder/sharedflowbundle" -type f -name "*.xml" -maxdepth 1 -mindepth 1)" ]; then
159159
if [ -z "$bundle_name" ]; then
160160
bundle_name=$(basename "$source_dir")
161161
fi

tools/apigee-sackmesser/cmd/report/report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ do
204204
echo "<td>$policycount</td>" >> "$report_html"
205205
echo "<td>$flowcount</td>" >> "$report_html"
206206
echo "</tr>" >> "$report_html"
207-
done < <(find "$export_folder/apigeelint/proxies/"*.json -print0)
207+
done < <("$export_folder/apigeelint/proxies/"*.json -print0)
208208

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

0 commit comments

Comments
 (0)