From 26aa31cd8e3173359a78762c5aec2c94e4a75423 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Wed, 7 Dec 2022 19:48:33 +0100 Subject: [PATCH] Fixed RegEx - needed to escape `.` to prevent the regex from deleting the last letter --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 44a8bbe..42abcb6 100755 --- a/build.sh +++ b/build.sh @@ -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 -- 2.38.5