Skip to content

Commit

Permalink
import.sh: Fix parsing of distro+arch
Browse files Browse the repository at this point in the history
Handle <distro>-debs too
  • Loading branch information
rhaschke committed Feb 23, 2025
1 parent 2444b69 commit 435ec29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion reprepro/import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ else
# parse distro and arch from artifact name <distro>-<arch>-debs
if [[ $a =~ ([^-]+)-([^-]+)(-debs)? ]]; then
distro=${BASH_REMATCH[1]}
arch=${BASH_REMATCH[2]}
if [ "${BASH_REMATCH[2]}" == "debs" ]; then
arch=$ARCH
else
arch=${BASH_REMATCH[2]}
fi
else
distro=$DISTRO
arch=$ARCH
Expand Down

0 comments on commit 435ec29

Please sign in to comment.