forked from osmocom/wireshark
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:
parent
d9e230d79a
commit
8094ad896b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue