Only run delete if files exist (#20617)
* Only run delete if folders exist * - fix
This commit is contained in:
Родитель
37be10aad8
Коммит
118319c1ca
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче