From 61fc62cd3e49ac07fb01cc980b73bd12f12fa4ed Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Mon, 8 Jul 2019 21:20:54 -0700 Subject: [PATCH] fix binary name --- core/poller/.metadata.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/poller/.metadata.sh b/core/poller/.metadata.sh index 87aa673e..ce87c779 100755 --- a/core/poller/.metadata.sh +++ b/core/poller/.metadata.sh @@ -13,8 +13,8 @@ CONFIG_FILE="up.conf" LICENSE="MIT" # The rest if mostly automatic. - -BINARY="$(basename $(pwd))" +BINARY="$(basename $(git rev-parse --show-toplevel))" +[ "$BINARY" != "" ] || BINARY="$(basename $(pwd))" GHREPO="${GHUSER}/${BINARY}" URL="https://github.com/${GHREPO}"