~comcloudway/ccw-aports

26aa31cd8e3173359a78762c5aec2c94e4a75423 — Jakob Meier 1 year, 11 months ago 6dfa3ff
Fixed RegEx

- needed to escape `.`
  to prevent the regex from deleting the last letter
1 files changed, 4 insertions(+), 2 deletions(-)

M build.sh
M build.sh => build.sh +4 -2
@@ 1,6 1,8 @@
#!/bin/sh
# Needs: fd, bash, abuild, dateutils

set -eu

# Build a specific package
# Arg 1: the repo path (e.g. broken, main or testing)
# Arg 2: the package name (e.g. oomph)


@@ 30,7 32,7 @@ function build_subrepo() {

    fd --type d --exact-depth 1 | \
        while read pkg; do
            pkg="$(echo $pkg | sed 's/.\///' | sed 's/\///')"
            pkg="$(echo $pkg | sed 's/\.\///' | sed 's/\///')"
            cd ..
            build_package $repo $pkg
            cd $repo


@@ 53,7 55,7 @@ function build_all() {

    fd --type d --exact-depth 1 | \
        while read repo; do
            repo="$(echo $repo | sed 's/.\///' | sed 's/\///')"
            repo="$(echo $repo | sed 's/\.\///' | sed 's/\///')"
            if [ "$repo" != "broken" ]; then
                build_subrepo $repo
            fi