Skip to content

Commit ca9313a

Browse files
committed
fix sackmesser root xml logic
1 parent 4dcd548 commit ca9313a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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 [ ! -f "$temp_folder/apiproxy/*.xml" ]; then
125+
if [ -z "$(find $temp_folder/apiproxy -type f -name "*.xml" -d 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 [ ! -f "$temp_folder/sharedflowbundle/*.xml" ]; then
158+
if [ -z "$(find $temp_folder/sharedflowbundle -type f -name "*.xml" -d 1)" ]; then
159159
if [ -z "$bundle_name" ]; then
160160
bundle_name=$(basename "$source_dir")
161161
fi

0 commit comments

Comments
 (0)