From f29ce40ebbb9ac47604e6e5952a4be414073772a Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Wed, 5 Nov 2014 15:46:13 +0100 Subject: remove noise if one of {jhead, exiftool} are not available diff --git a/anondcim b/anondcim index df5d4b9..7f7545b 100755 --- a/anondcim +++ b/anondcim @@ -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 -- cgit v0.10.1