aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-22 13:59:15 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-22 13:59:15 +0200
commita50cb5188666e7de776d2550a70636e4e3c6388b (patch)
treefe401e3c9ce5de51e987db58235950eeee6e014a /scripts
parent3196b9796a0294ff46a710507e193e61bd752631 (diff)
downloadaurbuilder-a50cb5188666e7de776d2550a70636e4e3c6388b.tar.gz
fix update repo
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_repo.sh4
1 files 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