#!/usr/bin/env bash # vim:ts=4:sts=4:sw=4:et # run: GIT_USERNAME=hari-s GIT_PASSWORD=testpass git_askpass.sh get # # Author: Hari Sekhon # Date: 2022-08-24 15:35:06 +0100 (Wed, 24 Aug 2022) # # https://github.com/HariSekhon/DevOps-Bash-tools # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish # # https://www.linkedin.com/in/HariSekhon # # https://git-scm.com/docs/gitcredentials # https://git-scm.com/docs/git-credential set -euo pipefail # doesn't seem to pass through DEBUG environment variable when called via 'git credential fill' - will need to set -x explicitly [ -n "${DEBUG:-}" ] && set -x #set -x usage(){ cat <