Skip to content

Commit

Permalink
[CI] Do not fail jobs on unsuccessful removal of temp folders
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Jul 4, 2024
1 parent 68fb16a commit 441484d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/install_ios_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ cleanup() {
if [ -d "$staging" ]; then
set +e
log "Removing $staging..."
rm -r "$staging"
rm -r "$staging" || true
log "Unmounting $mountpoint..."
hdiutil detach "$mountpoint" >&2
hdiutil detach "$mountpoint" >&2 || true
fi

if [ -d "$mountpoint" ]; then
log "Removing $mountpoint..."
rmdir "$mountpoint"
rmdir "$mountpoint" || true
fi
}
trap cleanup EXIT
Expand Down

0 comments on commit 441484d

Please sign in to comment.