mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-05 22:04:46 -04: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:
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 )) {
|
||||
|
||||
Reference in New Issue
Block a user