From b3dc3ad8b9461398987924dc3a74d70e50ed554a Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 1 Jun 2015 14:41:04 +0300 Subject: [PATCH] actually exit plz --- builder-chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder-chroot b/builder-chroot index ad9a592..095bc80 100755 --- a/builder-chroot +++ b/builder-chroot @@ -20,10 +20,11 @@ main() { package="$1" - if [[ -d "/tmp/build-${package}/.spark.repo" ]]; then + if [[ -f "/tmp/build-${package}/.spark.repo" ]]; then repo_name=$( <"/tmp/build-${package}/.spark.repo" ) else err "Repo not specified, not building package." + return 1 fi build_pkg "$package" "$repo_name"