refactoring

This commit is contained in:
Simon Vieille 2021-04-27 12:10:08 +02:00
parent 4f5c85dbcc
commit 302920b5db

View file

@ -93,8 +93,8 @@ while getopts "hvi:o:" option; do
esac
done
if [ $ERROR -eq 1 ]; then
error "Invalid parameter\\n$(usage)"
if [ "$ERROR" -eq 1 ]; then
error "$(usage)"
fi
exitIfEmpty "$INPUT_FILE" "Input file is missing (-i)"