summaryrefslogtreecommitdiff
path: root/imagescheck/icccheckfile.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-06 16:34:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-06 16:34:04 +0300
commit42303e4c2b89dc9912734153858c1338b3c4b0d9 (patch)
treecffd29c3ba25b7e5a37427db4e28b61d4264323c /imagescheck/icccheckfile.sh
parent0127f528c76c4c07c5841c69c6183a04b6313455 (diff)
downloadevol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.gz
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.bz2
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.xz
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.zip
Add imagecheck tool. For now it search for icc profiles.
Diffstat (limited to 'imagescheck/icccheckfile.sh')
-rwxr-xr-ximagescheck/icccheckfile.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/imagescheck/icccheckfile.sh b/imagescheck/icccheckfile.sh
new file mode 100755
index 0000000..d2e46c9
--- /dev/null
+++ b/imagescheck/icccheckfile.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+identify -verbose $1 | grep profile >/dev/null
+
+if [ "$?" == 0 ]; then
+ export name="$1"
+ export name=${name##../../client-data/}
+ echo "ICC profile found for image $name"
+fi