mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Added file check
This commit is contained in:
parent
af66851b8b
commit
20675ac380
1 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,11 @@ if [ ! -z "$src_file" ]; then
|
|||
echo "Error: invalid source path $src_file"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [ ! -f "$src_file" ]; then
|
||||
echo "Error: file not found $src_file"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
# Reading file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue