Untitled
public shellscript v1 · immutable 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