Skip to content

Commit

Permalink
v1.0.9 Fix Invalid scale factor message
Browse files Browse the repository at this point in the history
error message was outdated
  • Loading branch information
tavinus authored Jul 10, 2016
1 parent e745d85 commit 00c2e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdfScale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a


VERSION="1.0.8"
VERSION="1.0.9"
SCALE="0.95" # scaling factor (0.95 = 95%, e.g.)
VERBOSE=0 # verbosity Level
BASENAME="$(basename $0)" # simplified name of this script
Expand Down Expand Up @@ -95,7 +95,7 @@ printDependency() {
parseScale() {
if ! [[ -n "$1" && "$1" =~ ^-?[0-9]*([.][0-9]+)?$ && (($1 > 0 )) ]] ; then
echo >&2 "Invalid factor: $1"
echo >&2 "The factor must be a number between 0 and 1."
echo >&2 "The factor must be a floating point number greater than 0"
echo >&2 "Example: for 80% use 0.8"
exit 2
fi
Expand Down

0 comments on commit 00c2e28

Please sign in to comment.