浏览代码

v1.0.9 Fix Invalid scale factor message

error message was outdated
master
Gustavo Arnosti Neves 9 年前
committed by GitHub
父节点
当前提交
00c2e28e99
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      pdfScale.sh

+ 2
- 2
pdfScale.sh 查看文件

@@ -11,7 +11,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a # 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.) SCALE="0.95" # scaling factor (0.95 = 95%, e.g.)
VERBOSE=0 # verbosity Level VERBOSE=0 # verbosity Level
BASENAME="$(basename $0)" # simplified name of this script BASENAME="$(basename $0)" # simplified name of this script
@@ -95,7 +95,7 @@ printDependency() {
parseScale() { parseScale() {
if ! [[ -n "$1" && "$1" =~ ^-?[0-9]*([.][0-9]+)?$ && (($1 > 0 )) ]] ; then if ! [[ -n "$1" && "$1" =~ ^-?[0-9]*([.][0-9]+)?$ && (($1 > 0 )) ]] ; then
echo >&2 "Invalid factor: $1" 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" echo >&2 "Example: for 80% use 0.8"
exit 2 exit 2
fi fi


正在加载...
取消
保存