Skip to content

Commit 148ca10

Browse files
committed
also allow EESSI versions like YYYYMMDD
1 parent ae8e18f commit 148ca10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ingest-tarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function check_version() {
7373

7474
# Check if the EESSI version number encoded in the filename
7575
# is valid, i.e. matches the format YYYY.DD
76-
if ! echo "${version}" | egrep -q '^20[0-9][0-9]\.(0[0-9]|1[0-2])$'
76+
if ! echo "${version}" | egrep '(^20[0-9][0-9]\.(0[0-9]|1[0-2])$)|(^20[0-9][0-9][0-9][0-9][0-9][0-9]$)'
7777
then
7878
error "${version} is not a valid EESSI version."
7979
fi

0 commit comments

Comments
 (0)