Fixed logic bug
This commit is contained in:
parent
829fcfe800
commit
1aa28e02c4
@ -40,7 +40,7 @@ shift 2
|
|||||||
[ ! -f "$TOKEN_FILE" ] && echo "Could not locate: ${TOKEN_FILE}" && exit 1
|
[ ! -f "$TOKEN_FILE" ] && echo "Could not locate: ${TOKEN_FILE}" && exit 1
|
||||||
|
|
||||||
[ "$PASSPHRASE_FILE" = '-' ] && eval "$(gpg -d -q --pinentry-mode=loopback "${TOKEN_FILE}")"
|
[ "$PASSPHRASE_FILE" = '-' ] && eval "$(gpg -d -q --pinentry-mode=loopback "${TOKEN_FILE}")"
|
||||||
[ -f "$PASSPHRASE_FILE" ] && . "$(readlink -f "$TOKEN_FILE")"
|
|
||||||
[ ! -z "$PASSPHRASE_FILE" ] && eval "$(gpg -d -q --passphrase-file "${PASSPHRASE_FILE}" --pinentry-mode=loopback "${TOKEN_FILE}")"
|
[ ! -z "$PASSPHRASE_FILE" ] && eval "$(gpg -d -q --passphrase-file "${PASSPHRASE_FILE}" --pinentry-mode=loopback "${TOKEN_FILE}")"
|
||||||
|
[ -z "$PASSPHRASE_FILE" ] && [ -f "$PASSPHRASE_FILE" ] && . "$(readlink -f "$TOKEN_FILE")"
|
||||||
|
|
||||||
"$ENTRY" --api-base-url "$API_BASE_URL" --client-id "$CLIENT_ID" --client-secret "$CLIENT_SECRET" --access-token "$ACCESS_TOKEN" "$@"
|
"$ENTRY" --api-base-url "$API_BASE_URL" --client-id "$CLIENT_ID" --client-secret "$CLIENT_SECRET" --access-token "$ACCESS_TOKEN" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user