Skip to content

Commit

Permalink
Merge pull request #188 from matthiaslein/master
Browse files Browse the repository at this point in the history
Fix for macos Big Sur changes to diskutil output
  • Loading branch information
StefanScherer authored Nov 19, 2020
2 parents a26609c + e538a94 commit c501e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ case "${OSTYPE}" in
_RET=1
return
fi
readonlymedia=$(diskutil info "$disk" | grep --color=never "Read-Only Media" | awk 'NF>1{print $NF}')
readonlymedia=$(diskutil info "$disk" | grep --color=never "Read-Only Media\|Media Read-Only" | awk 'NF>1{print $NF}')
if [[ $readonlymedia == "No" ]] ; then
_RET=1
else
Expand Down

0 comments on commit c501e62

Please sign in to comment.