Skip to content

Commit

Permalink
Define variable $arch correctly to check
Browse files Browse the repository at this point in the history
  • Loading branch information
Neves-P committed Dec 2, 2024
1 parent f107d8a commit c267a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ingest-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function check_os() {

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

0 comments on commit c267a52

Please sign in to comment.