From 2f01849a3fbf7e4bb6e3588df6769a40148fe4b4 Mon Sep 17 00:00:00 2001 From: olpc user Date: Tue, 7 Jan 2020 16:55:28 -0800 Subject: fix logic error --- git-maintenance/get.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'git-maintenance') diff --git a/git-maintenance/get.sh b/git-maintenance/get.sh index c3322f8..961d103 100755 --- a/git-maintenance/get.sh +++ b/git-maintenance/get.sh @@ -4,12 +4,15 @@ PASS="$(ls "/run/media/"*/*"/key.fsojp.aes256" | head -n 1)" PUBKEY=1KwpZECcrGWnM3AFVSbv3Xr5qguV4yG2sV URLPFX="https://bico.media/$PUBKEY" -REPONAME="$(git rev-parse --show-toplevel 2>/dev/null)" -if [ "$REPONAME" = "" ] +if [ "$1" != "" ] then REPONAME="$1" fi if [ "$REPONAME" = "" ] +then + REPONAME="$(git rev-parse --show-toplevel 2>/dev/null)" +fi +if [ "$REPONAME" = "" ] then REPONAME=for-slow-organization-job-private fi -- cgit v1.2.3