Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 27, 2024
1 parent d78c11b commit 0555238
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ fi
name=$(basename "${INPUT_FACTBASE}")
name=${name%.*}
if [[ ! "${name}" =~ ^[a-z][a-z0-9-]{1,23}$ ]]; then
echo "The base name of the factbase file (${name}) doesn't match the expected pattern."
echo "It must only include low-case English letters and numbers,"
echo "The base name (\"${name}\") of the factbase file doesn't match the expected pattern."
echo "The file name is: \"${INPUT_FACTBASE}\""
echo "A base name must only include low-case English letters, numbers, and a dash,"
echo "may start only with a letter, and may not be longer than 24 characters."
exit 1
fi
Expand Down

0 comments on commit 0555238

Please sign in to comment.