home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhance Bookworm setup.
[config]
/
all_new_2018
/
borg.sh
diff --git
a/all_new_2018/borg.sh
b/all_new_2018/borg.sh
index 1be74bb13f0730d5366378d7e77f5795bbaf128b..18321b15fa949256cc3cd13077e6002ef73cee52 100755
(executable)
--- a/
all_new_2018/borg.sh
+++ b/
all_new_2018/borg.sh
@@
-16,9
+16,13
@@
usage() {
}
read_pw() {
}
read_pw() {
- eval $(ssh-agent)
- echo "ssh-add"
- ssh-add
+ if [ "${#SSH_AGENT_PID}" -eq 0 ]; then
+ eval $(ssh-agent)
+ echo "ssh-add"
+ stty -echo
+ ssh-add
+ stty echo
+ fi
if [ "${#BORG_PASSPHRASE}" -eq 0 ]; then
stty -echo
printf "Borg passphrase: "
if [ "${#BORG_PASSPHRASE}" -eq 0 ]; then
stty -echo
printf "Borg passphrase: "