Skip to content

Commit 3101cd6

Browse files
authored
Merge pull request EESSI#157 from boegel/fix_ingest_tarball_init
fix ingesting of init tarball
2 parents e642bcc + 1906a47 commit 3101cd6

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
@@ -222,7 +222,7 @@ version=$(echo "${tar_file_basename}" | cut -d- -f2)
222222
contents_type_dir=$(echo "${tar_file_basename}" | cut -d- -f3)
223223
tar_first_file=$(tar tf "${tar_file}" | head -n 1)
224224
tar_top_level_dir=$(echo "${tar_first_file}" | cut -d/ -f1)
225-
tar_contents_type_dir=$(echo "${tar_first_file}" | head -n 2 | tail -n 1 | cut -d/ -f2)
225+
tar_contents_type_dir=$(tar tf "${tar_file}" | head -n 2 | tail -n 1 | cut -d/ -f2)
226226

227227
# Do some checks, and ingest the tarball
228228
check_repo_vars

0 commit comments

Comments
 (0)