diff options
author | Jan Huwald <jh@sotun.de> | 2014-11-05 14:51:13 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2014-11-05 14:51:13 (GMT) |
commit | 26d04aa7dccb78b7e7d3cab1002358fa08d40a8b (patch) | |
tree | 7d09c9ef1da51f9adfdc1b15404734cd10a73826 | |
parent | 7cee7992677b5b2baa801160b1b7dabbe8a80d5f (diff) |
simplify: which already checks for executability
-rwxr-xr-x | anondcim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ rand() { [ $# -gt 0 ] || die "Usage: $0 [-p image_prefix] [-s destination_size (absolute or percentage)] [-d destination_directory] imagefile(s)" -[ ! -x "$(which convert)" ] && die "ImageMagick (convert, identify) is not installed" +which convert 2>/dev/null || die "ImageMagick (convert, identify) is not installed" which jhead 2>/dev/null || which exiftool 2>/dev/null || die "jhead or exiftool has to be installed" # set default values |