@@ 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