Skip to content

Commit

Permalink
feat: add FILE_SIZE_LIMIT param
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <[email protected]>
  • Loading branch information
Dup4 committed Dec 9, 2023
1 parent 655bc24 commit 2c1af90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/handle_print_cmd/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LOCATION="${7}"

if [[ -n "${SUBMIT_FILE_LIMIT}" ]]; then
if [[ -s "${FILE}" && $(stat -c%s "${FILE}") -gt "${SUBMIT_FILE_LIMIT}" ]]; then
echo "File size exceeding the limit."
echo "File size exceeding the limit. [FILE_SIZE_LIMIT=${SUBMIT_FILE_LIMIT}]"
exit 1
fi
fi
Expand Down

0 comments on commit 2c1af90

Please sign in to comment.