From eb297d90ce2a13dd3bc7fd4f90275f82b26ca640 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 17 Nov 2018 16:11:46 +0100 Subject: [PATCH] Exit when no repo is present Signed-off-by: Knut Ahlers --- run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run.sh b/run.sh index 1568267..b7e1eab 100755 --- a/run.sh +++ b/run.sh @@ -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