All pastes #418266 Raw Edit

Untitled

public shellscript v1 · immutable
#418266 ·published 2007-03-31 14:52 UTC
rendered paste body
	if [ -f "$I" ]	then		unset error; unset filetype		filetype=$(file -b "$I" | cut -f 1 -d ",")		[[ "$filetype" = *"ISO 9660 CD-ROM"* ]] || error="wrong"		if [ -n "$error" ]		then			cecho "red" "this is not a correct disk-image"			cecho "red" "filetype: $filetype"			continue		fi	fi