2024-04-14 00:27:14 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -o nounset
|
|
|
|
|
set -o errexit
|
|
|
|
|
|
2024-04-14 01:33:43 +02:00
|
|
|
if [[ ! -e "${PASSWORD_STORE_DIR}" ]] ; then
|
2024-04-14 00:27:14 +02:00
|
|
|
printf '%s\n' 'This is the first time running pass, initializting repository ...'
|
|
|
|
|
|
2024-04-14 01:33:43 +02:00
|
|
|
git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git "${PASSWORD_STORE_DIR}"
|
2024-04-14 00:27:14 +02:00
|
|
|
|
|
|
|
|
printf '%s\n' 'Done'
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
command -p pass "${@}"
|