diff options
author | Jan Huwald <jh@sotun.de> | 2014-11-05 14:46:13 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2014-11-05 14:46:13 (GMT) |
commit | f29ce40ebbb9ac47604e6e5952a4be414073772a (patch) | |
tree | 5fede62b8b53c13851fdca1ff24116ef32dcc447 | |
parent | 969660650110484c1aced8642778d11b03bd169c (diff) |
remove noise if one of {jhead, exiftool} are not available
-rwxr-xr-x | anondcim | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -92,12 +92,10 @@ EOF "$dst" # remove metadata - if [ -x "$(which jhead)" ] - then + if which jhead &>/dev/null; then jhead -purejpg -q "$dst" || err "removing meta-data with jhead failed" fi - if [ -x "$(which exiftool)" ] - then + if which exiftool &>/dev/null; then exiftool -overwrite_original -all= "$dst" || err "removing meta-data with exiftool failed" fi |