CI: Remove optimistic continuation of disk image creation for macOS
The situation of the mount point being unmounted after an unsuccessful detach attempt leads to an unrecoverable situation. Instead of optimistically continuing, the script has to fail.
This commit is contained in:
parent
0a248ab589
commit
cb531b5034
1 changed files with 0 additions and 8 deletions
8
.github/scripts/utils.zsh/create_diskimage
vendored
8
.github/scripts/utils.zsh/create_diskimage
vendored
|
|
@ -26,14 +26,6 @@ safe_hdiutil() {
|
|||
local -r -a _backoff=(2 5 10 15 30)
|
||||
|
||||
for i ({1..5}) {
|
||||
if [[ ${1} == detach ]] {
|
||||
if ! [[ -d ${@[-1]} ]] {
|
||||
log_warning "Volume at mountpoint ${@[-1]} is not mounted anymore. Continuing."
|
||||
_status=0
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
hdiutil ${@} && _status=0 || _status=1
|
||||
|
||||
if (( _status )) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue