mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 15:24:07 +00:00
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
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…
Reference in a new issue