We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b2c7d commit 6b0a185Copy full SHA for 6b0a185
1 file changed
frameworks/pinpoint-java/functions.sh
@@ -109,6 +109,9 @@ function waitForStartup {
109
fileName=$1
110
textToWaitFor=$2
111
112
+ sync
113
+ sleep 5
114
+
115
echo "Waiting for $fileName to contain $textToWaitFor"
116
attempt=0
117
while [ $attempt -le 150 ]; do
@@ -117,6 +120,7 @@ function waitForStartup {
120
result=$(cat $fileName 2>&1)
118
121
if grep -q "$textToWaitFor" <<< $result ; then
119
122
echo "$fileName contains $textToWaitFor!"
123
+ ls -lah $fileName
124
echo "Result: $result"
125
ls -lah $fileName
126
break
0 commit comments