ソースを参照

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

master
コミット
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"




読み込み中…
キャンセル
保存