From: Francois Fleuret Date: Fri, 3 Jan 2014 09:53:06 +0000 (+0100) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae7f4b84ee0a0d6302f98d48d1720b255cf3ec40;p=scripts.git Update. --- diff --git a/bashrc b/bashrc index 6310a94..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") ]] || [[ $(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/