rpassword 7.5.2

Read passwords in console applications.
Documentation
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -xeuo pipefail

input="$(cat)"

if [ -n "$GIT_GLOBAL_HOOKS_PATH" -a -x "$GIT_GLOBAL_HOOKS_PATH/pre-push" ]; then
  echo -n "$input" | $GIT_GLOBAL_HOOKS_PATH/pre-push
fi