mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
minor
This commit is contained in:
parent
1e30814614
commit
6a2bca8ca6
@ -2,7 +2,7 @@
|
|||||||
_pkgname=repo
|
_pkgname=repo
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.2.1
|
pkgver=0.2.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Bash script to manage remote Arch Linux repository"
|
pkgdesc="Bash script to manage remote Arch Linux repository"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -8,7 +8,7 @@ function main() {
|
|||||||
# check if at least one matching file exists
|
# check if at least one matching file exists
|
||||||
match="0"
|
match="0"
|
||||||
for PKG in ./*.pkg.tar.{xz,zst}; do
|
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!
|
# if we are here, then there is at least one match!
|
||||||
match="1"
|
match="1"
|
||||||
@ -16,7 +16,7 @@ function main() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$match" = "0" ]; then
|
if [ "$match" = "0" ]; then
|
||||||
echo "There are no local packages"
|
echo "There are no local packages inside ${LOCAL_PKG_DIR}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ function main() {
|
|||||||
|
|
||||||
# if there are no new packages to push/synchronize, then return
|
# if there are no new packages to push/synchronize, then return
|
||||||
if [ ! -s new-pkg.txt ]; then
|
if [ ! -s new-pkg.txt ]; then
|
||||||
echo "No new packages.";
|
echo "No new packages inside ${LOCAL_PKG_DIR}";
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user