macOS: Fix our token wait.

Change-Id: I3a678267b38a598f43322a1440dd87fa42acf901
Reviewed-on: https://code.wireshark.org/review/33750
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2019-06-26 16:29:53 -07:00
parent d9e230d79a
commit 8094ad896b
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ fi
max_upload_wait=$(( 5 * 60))
start=$SECONDS
while ls "$HOME"/Library/Caches/com.apple.amp.itmstransporter/UploadTokens/ > /dev/null 2>&1 ; do
echo "Another upload in progress. Waiting 5s\xe2\x80\xa6"
while ls "$HOME"/Library/Caches/com.apple.amp.itmstransporter/UploadTokens/*.token > /dev/null 2>&1 ; do
echo -e "Another upload in progress. Waiting 5s\xe2\x80\xa6"
sleep 5
elapsed=$(( SECONDS - start ))
if [[ $elapsed -gt $max_upload_wait ]] ; then