mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Fix the issue related to open windows (#9722)
This commit is contained in:
@@ -22,17 +22,17 @@ while [[ $retry -gt 0 ]]; do
|
||||
fi
|
||||
sleep 30
|
||||
done
|
||||
IFS=',' read -r -a windowslist <<< $openwindows
|
||||
IFS=',' read -r -a windowslist <<< "$openwindows"
|
||||
|
||||
if [[ -n ${openwindows} ]]; then
|
||||
echo "Found opened window:"
|
||||
fi
|
||||
|
||||
for window in ${windowslist[@]}; do
|
||||
if [[ $window =~ "NotificationCenter" ]]; then
|
||||
echo "[Warning] $window"
|
||||
for key in ${!windowslist[@]}; do
|
||||
if [[ ${windowslist[$key]} =~ "NotificationCenter" ]]; then
|
||||
echo "[Warning] ${windowslist[$key]}"
|
||||
else
|
||||
echo " - ${window}" | xargs
|
||||
echo " - ${windowslist[$key]}" | xargs
|
||||
scripterror=true
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user