From: Christian Heller Date: Wed, 8 May 2019 18:37:29 +0000 (+0200) Subject: Some more fixes. X-Git-Url: https://plomlompom.com/repos/do_tasks?a=commitdiff_plain;h=2227d826282c56714b66a3d7865ec96612e358dd;p=config Some more fixes. --- diff --git a/all_new_2018/borg.sh b/all_new_2018/borg.sh index c518c8b..18321b1 100755 --- a/all_new_2018/borg.sh +++ b/all_new_2018/borg.sh @@ -19,7 +19,9 @@ read_pw() { 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 diff --git a/buster/setup_scripts/setup_home_eeepc.sh b/buster/setup_scripts/setup_home_eeepc.sh index 7678bf3..4422211 100755 --- a/buster/setup_scripts/setup_home_eeepc.sh +++ b/buster/setup_scripts/setup_home_eeepc.sh @@ -51,7 +51,8 @@ cat "${borgrepos_file}" | while read line; do if [ "${first_char}" = "#" ]; then continue fi - ssh-keyscan "${line}" >> "${ssh_dir}"/known_hosts + server=$(echo "${line}" | sed 's/.*@//') + ssh-keyscan "${server}" >> "${ssh_dir}"/known_hosts done BORG_PASSPHRASE="${SECRETS_PASS}" "${path_borgscript}" orgpull