From a50cb5188666e7de776d2550a70636e4e3c6388b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 22 Jul 2023 13:59:15 +0200 Subject: fix update repo --- scripts/update_repo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_repo.sh b/scripts/update_repo.sh index 04e697e..9157972 100755 --- a/scripts/update_repo.sh +++ b/scripts/update_repo.sh @@ -1,5 +1,5 @@ #!/bin/bash OUTPUT=${OUTPUT:-/srv/pkg/} -repo-add -pR "$OUTPUT/repo.db.tar.gz" "$OUTPUT/*.pkg.*" -rm "$OUTDIR/*.old" +repo-add -pR "$OUTPUT/repo.db.tar.gz" "$OUTPUT/"*.pkg.* || exit 1 +rm -f "$OUTDIR/"*.old -- cgit v1.2.3