Added file check

This commit is contained in:
System Void 2016-06-26 16:18:43 +01:00 committed by GitHub
parent af66851b8b
commit 20675ac380

View file

@ -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