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
Brian Stinson 4ee386
pngfile="$(find /usr/share/ -type f -name '*.png' -print -quit)"
Ranjib Dey e0701f
04b6e9
if [ -z "$pngfile" ];then
04b6e9
    t_Log "No png file found => SKIP"
04b6e9
    exit 0
04b6e9
fi
04b6e9
Rene Diepstraten 20f7b5
file $pngfile -i | grep -q 'image/png'
Ranjib Dey e0701f
d7bd9f
t_CheckExitStatus $?