From 9b49f2fbb2694385a101805dac98bbc17dac4a46 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco <santilococo.01@gmail.com> Date: Sun, 6 Feb 2022 18:05:21 -0300 Subject: [PATCH] Update symlinks bug --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index b51fd05..11cf584 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash getAnyPackages() { - mapfile -t pkgs < <(find -H "$PWD/any" -mindepth 1 -type f -regex '.*.pkg.tar.zst.*') + mapfile -t pkgs < <(find -H "any" -mindepth 1 -type f -regex '.*.pkg.tar.zst.*') for arch in "x86_64" "i686" "aarch64"; do cd "$arch" || { echo "Couldn't cd into '$arch'." 1>&2 && exit 1; } for pkg in "${pkgs[@]}"; do @@ -25,7 +25,7 @@ buildDatabase() { else echo "repo-add -s -n -R -k calrepo.db.tar.gz $pkg" fi - done < <(find -L "$PWD" -mindepth 1 -type f -regex '.*.pkg.tar.zst') + done < <(find -L -mindepth 1 -type f -regex '.*.pkg.tar.zst') cd .. || { echo "Couldn't cd into the parent folder." 1>&2 && exit 1; } done }