瀏覽代碼

Checks if input file exists and displays error message if not found

master
Gustavo Neves 8 年之前
父節點
當前提交
7809a8d36e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      pdfScale.sh

+ 1
- 1
pdfScale.sh 查看文件

@@ -669,7 +669,7 @@ vprint " Scale factor: $SCALE"
[[ $# -lt 1 ]] && { usage; exit 1; }
INFILEPDF="$1"
[[ "$INFILEPDF" =~ ^..*\.pdf$ ]] || { usage; exit 2; }
[[ -f "$INFILEPDF" ]] || { echo "Error! File not found: $INFILEPDF"; usage; exit 2; }
[[ -f "$INFILEPDF" ]] || { echo "Error! File not found: $INFILEPDF"; exit 3; }
vprint " Input file: $INFILEPDF"




Loading…
取消
儲存