X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=bashrc;h=b4da27d4d5f70dea3c001ddede5bfea5c950ef86;hb=ae7f4b84ee0a0d6302f98d48d1720b255cf3ec40;hp=86a1f88991574bfa25673fb8b50bb6d486ff55ea;hpb=0d004c8474701f9b4a622ca041537fd4916ca48b;p=scripts.git diff --git a/bashrc b/bashrc index 86a1f88..b4da27d 100644 --- a/bashrc +++ b/bashrc @@ -554,10 +554,10 @@ function burn () { if [[ ! "$1" ]]; then echo "burn " >&2 elif [[ -f "$1" ]]; then - if [[ $(file "$1" | grep "ISO 9660") ]]; 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/