Fix the issue related to open windows (#9722)

This commit is contained in:
MaksimZhukov
2024-04-23 11:06:38 +02:00
committed by GitHub
parent 22940f4a86
commit 30f313be54

View File

@@ -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