Skip to content

Commit 5d1d210

Browse files
committed
Ensure correct basedir with project_name regardless of arch
1 parent 7482541 commit 5d1d210

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/ingest-tarball.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ tar_top_level_dir=$(echo "${tar_first_file}" | cut -d/ -f1)
261261
# Handle longer prefix with project name in dev.eessi.io and
262262
# get the right basedir from the tarball name
263263
if [ "${cvmfs_repo}" = "dev.eessi.io" ]; then
264-
basedir=$(echo "${tar_file_basename}"/versions | cut -d- -f7)
264+
project_name=$(echo "${tar_file_basename}" | rev | cut -d- -f2 | rev)
265+
basedir="${project_name}"/versions
265266
else
266267
basedir=versions
267268
fi

0 commit comments

Comments
 (0)