Blame tests/p_file/02_file_mime_image.sh

Ranjib Dey e0701f
#!/bin/bash
Christoph Galuschka 37e507
# Author:	???
Christoph Galuschka 37e507
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Rene Diepstraten 20f7b5
#   Rene Diepstraten <rene@renediepstraten.nl>
Ranjib Dey e0701f
Ranjib Dey e0701f
t_Log "Running $0 - checking if file can recognize image mime file type "
Ranjib Dey e0701f
Rene Diepstraten 20f7b5
case $centos_ver in
Rene Diepstraten 20f7b5
  5|6)
Rene Diepstraten 20f7b5
    pngfile=/usr/lib/anaconda-runtime/boot/syslinux-splash.png
Rene Diepstraten 20f7b5
    ;;
Rene Diepstraten 20f7b5
  *)
Rene Diepstraten 20f7b5
    pngfile=/usr/share/anaconda/boot/syslinux-splash.png
Rene Diepstraten 20f7b5
    ;;
Rene Diepstraten 20f7b5
esac
Ranjib Dey e0701f
Rene Diepstraten 20f7b5
file $pngfile -i | grep -q 'image/png'
Ranjib Dey e0701f
Rene Diepstraten 20f7b5
t_CheckExitStatus $?