Exit when no repo is present

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-11-17 16:11:46 +01:00
parent 5d7082b7f3
commit eb297d90ce
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

1
run.sh
View file

@ -31,6 +31,7 @@ REPODB=$(find /repo -name '*.db.*' ! -name '*.old')
if [ -z "${REPODB}" ]; then
echo "No database found in /repo, not adding package."
echo "The built package is available in ${PACKAGE}"
exit 0
fi
gosu builder mv "${PACKAGE}" /repo