This commit is contained in:
Daniel Langbein 2021-05-13 16:01:25 +00:00
parent 1e30814614
commit 6a2bca8ca6
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
_pkgname=repo
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.2.1
pkgver=0.2.2
pkgrel=1
pkgdesc="Bash script to manage remote Arch Linux repository"
arch=('any')

View File

@ -8,7 +8,7 @@ function main() {
# check if at least one matching file exists
match="0"
for PKG in ./*.pkg.tar.{xz,zst}; do
[ -f "$PKG" ] || { echo "There are no local packages for the pattern $PKG"; continue; }
[ -f "$PKG" ] || { echo "There are no local packages inside ${LOCAL_PKG_DIR} for pattern $PKG"; continue; }
# if we are here, then there is at least one match!
match="1"
@ -16,7 +16,7 @@ function main() {
done
if [ "$match" = "0" ]; then
echo "There are no local packages"
echo "There are no local packages inside ${LOCAL_PKG_DIR}"
return 0
fi
@ -29,7 +29,7 @@ function main() {
# if there are no new packages to push/synchronize, then return
if [ ! -s new-pkg.txt ]; then
echo "No new packages.";
echo "No new packages inside ${LOCAL_PKG_DIR}";
return 0;
fi