summaryrefslogtreecommitdiff
path: root/git-maintenance
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:55:28 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:55:28 -0800
commit2f01849a3fbf7e4bb6e3588df6769a40148fe4b4 (patch)
treec8d5c1aea29cad5085fe9f320e341d5df8359750 /git-maintenance
parent22f84a2e843b985deb9fe3f4e378e29059b16645 (diff)
downloadstandingwithresilience-2f01849a3fbf7e4bb6e3588df6769a40148fe4b4.tar.gz
standingwithresilience-2f01849a3fbf7e4bb6e3588df6769a40148fe4b4.zip
fix logic error
Diffstat (limited to 'git-maintenance')
-rwxr-xr-xgit-maintenance/get.sh7
1 files changed, 5 insertions, 2 deletions
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,13 +4,16 @@ 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