Fix: Do not work on the symlink

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-15 22:39:27 +02:00
parent 6fad0c2b4b
commit 68f511b08c
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

2
run.sh
View file

@ -68,7 +68,7 @@ gosu builder makepkg ${MAKEPKG_OPTS[@]}
PACKAGE=($(find . -regextype egrep -regex '^.*\.pkg(|\.tar|\.tar\.xz|\.tar\.zst)$'))
REPODB=$(find /repo -regextype egrep -regex '^.*\.db(|\.tar|\.tar\.xz|\.tar.zst)$')
REPODB=$(find /repo -regextype egrep -regex '^.*\.db(\.tar|\.tar\.xz|\.tar.zst)$')
if [ -z "${REPODB}" ]; then
echo "No database found in /repo, not adding package."
echo "The built package is available in ${PACKAGE}"