Created
January 30, 2013 06:31
-
-
Save pirxpilot/4671190 to your computer and use it in GitHub Desktop.
Check if PNG file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test -e $FILE -a $(file -b --mime-type $FILE) = "image/png"; then | |
echo 'PNG file' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment