mirror of
https://github.com/JanJastrow/ViThumbs.git
synced 2024-11-23 07:39:56 +01:00
Cancel script if input file could not be found
This commit is contained in:
parent
de751365d5
commit
0a09475342
@ -7,6 +7,12 @@ fi
|
||||
|
||||
# Input variables
|
||||
INPUT=$1
|
||||
|
||||
if [ ! -f "$INPUT" ]; then
|
||||
echo "File not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COLS=$2
|
||||
if [ -z "$COLS" ]; then
|
||||
COLS=5
|
||||
|
Loading…
Reference in New Issue
Block a user