Skip to content

Commit c267a52

Browse files
committed
Define variable $arch correctly to check
1 parent f107d8a commit c267a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/ingest-tarball.sh

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function check_os() {
156156

157157
function check_arch() {
158158
# Check if the architecture directory is correctly set for the contents of the tarball
159+
arch=$(echo "${tar_first_file}" | cut -d / -f $(( $tar_contents_start_level + 2 )))
159160
if [ -z "${arch}" ]
160161
then
161162
error "no architecture directory found in the tarball!"

0 commit comments

Comments
 (0)