Skip to content

Commit

Permalink
Define variable $os 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 13f5479 commit d75e9d9
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 @@ -143,6 +143,7 @@ function cvmfs_ingest_tarball() {

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

0 comments on commit d75e9d9

Please sign in to comment.