Skip to content
Snippets Groups Projects
Commit e05bb673 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- refactor: variable name

parent 9dce34f7
No related branches found
No related tags found
No related merge requests found
Pipeline #5339 passed
...@@ -17,13 +17,13 @@ if ! [[ -f "${FILE}" ]]; then ...@@ -17,13 +17,13 @@ if ! [[ -f "${FILE}" ]]; then
exit 1; exit 1;
fi fi
IS_VALID=1; RESULT=1;
TOOL_OUTPUT=""; TOOL_OUTPUT="";
for FLAVOUR in "2u" "2a" "2b" "1a" "1b" "ua1"; do for FLAVOUR in "2u" "2a" "2b" "1a" "1b" "ua1"; do
TMP=$(/usr/local/bin/verapdf --nonpdfext -f "${FLAVOUR}" -v "${FILE}") TMP=$(/usr/local/bin/verapdf --nonpdfext -f "${FLAVOUR}" -v "${FILE}")
IS_VALID=$?; RESULT=$?;
TOOL_OUTPUT+="\n${TMP}" TOOL_OUTPUT+="\n${TMP}"
if [[ "${IS_VALID}" -eq 0 ]]; then if [[ "${RESULT}" -eq 0 ]]; then
break break
fi fi
done done
...@@ -33,4 +33,4 @@ echo -e "${TOOL_OUTPUT}" ...@@ -33,4 +33,4 @@ echo -e "${TOOL_OUTPUT}"
# exit code # exit code
# 0 -> valid pdf/a file and allowed pdf/a flavour # 0 -> valid pdf/a file and allowed pdf/a flavour
# != 0 -> invalid pdf/a file or disallowed pdf/a flavour # != 0 -> invalid pdf/a file or disallowed pdf/a flavour
exit "${IS_VALID}" exit "${RESULT}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment