if [[ ! "$1" ]]; then
echo "burn <iso name | dirname>" >&2
elif [[ -f "$1" ]]; then
- if [[ $(file "$1" | grep "ISO 9660") ]] || [[ $(file "$1" | grep "UDF filesystem data") ]]; then
+ if [[ $(file "$1" | \grep -E 'ISO 9660|UDF filesystem data') ]]; then
wodim -eject -v dev=${DEVICE} "$1"
else
- echo "Unknown type of $1" >&2
+ echo "Do not know what to do with $1" >&2
fi
elif [[ -d "$1" ]]; then
[[ "${TMP_ROOT}" ]] || TMP_ROOT=/tmp/