diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-04-01 15:44:28 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-04-01 15:44:28 +0200 |
commit | 0b40f415c807e54a828594f0406c9f3617a54246 (patch) | |
tree | 3b07e951ef68eea4010da5954d210c4343d5fb87 | |
parent | f749ffb907211e05814f03b90052452f39f6c496 (diff) | |
download | impressive-display-0b40f415c807e54a828594f0406c9f3617a54246.tar.gz impressive-display-0b40f415c807e54a828594f0406c9f3617a54246.tar.bz2 impressive-display-0b40f415c807e54a828594f0406c9f3617a54246.zip |
Handle situations where the 'bc' command line calculator is not installed.
-rwxr-xr-x | bin/impressive-display | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index 08d9da1..c289e2d 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -184,6 +184,11 @@ function cleanup { function pdf_is_portrait { + if ! which bc 1>/dev/null; then + echo "WARNING: The 'bc' command line tool is not installed on this system." + return -1 + fi + check_pdffile=$1 if [ -n "$check_pdffile" ] && [ -r "$check_pdffile" ]; then |