This script relies on grepping/regexp English text. As Kristin mentioned, line 52 is an example, but line 40 also uses English text:
WARN=$(parted -s ${disk} print | grep "^Warning.*${disk}.*[Rr]ead-only" 2>&1)
This script relies on grepping/regexp English text. As Kristin mentioned, line 52 is an example, but line 40 also uses English text:
WARN=$(parted -s ${disk} print | grep "^Warning. *${disk} .*[Rr]ead- only" 2>&1)