* Only run delete if folders exist

* - fix
This commit is contained in:
Shane Neuville 2024-02-16 05:23:06 -06:00 коммит произвёл GitHub
Родитель 37be10aad8
Коммит 118319c1ca
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -81,8 +81,8 @@ steps:
- ${{ if eq(parameters.platform, 'ios')}}:
- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: always()
continueOnError: true

Просмотреть файл

@ -50,8 +50,8 @@ steps:
displayName: 'Build the Legacy ControlGallery'
- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: ${{ eq(parameters.platform, 'ios') }}
continueOnError: true

Просмотреть файл

@ -107,8 +107,8 @@ steps:
displayName: 'Build the samples'
- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: ${{ eq(parameters.platform, 'ios') }}
continueOnError: true