mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-12-21 01:51:19 +00:00
Exit when no repo is present
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5d7082b7f3
commit
eb297d90ce
1 changed files with 1 additions and 0 deletions
1
run.sh
1
run.sh
|
@ -31,6 +31,7 @@ REPODB=$(find /repo -name '*.db.*' ! -name '*.old')
|
||||||
if [ -z "${REPODB}" ]; then
|
if [ -z "${REPODB}" ]; then
|
||||||
echo "No database found in /repo, not adding package."
|
echo "No database found in /repo, not adding package."
|
||||||
echo "The built package is available in ${PACKAGE}"
|
echo "The built package is available in ${PACKAGE}"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gosu builder mv "${PACKAGE}" /repo
|
gosu builder mv "${PACKAGE}" /repo
|
||||||
|
|
Loading…
Reference in a new issue