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"