Skip to content

Commit 441484d

Browse files
committed
[CI] Do not fail jobs on unsuccessful removal of temp folders
1 parent 68fb16a commit 441484d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/install_ios_runtime.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ cleanup() {
1313
if [ -d "$staging" ]; then
1414
set +e
1515
log "Removing $staging..."
16-
rm -r "$staging"
16+
rm -r "$staging" || true
1717
log "Unmounting $mountpoint..."
18-
hdiutil detach "$mountpoint" >&2
18+
hdiutil detach "$mountpoint" >&2 || true
1919
fi
2020

2121
if [ -d "$mountpoint" ]; then
2222
log "Removing $mountpoint..."
23-
rmdir "$mountpoint"
23+
rmdir "$mountpoint" || true
2424
fi
2525
}
2626
trap cleanup EXIT

0 commit comments

Comments
 (0)