From 5a0db88c3df074ebce8b207f7f8138490a631f81 Mon Sep 17 00:00:00 2001 From: accel Date: Sun, 5 Dec 2021 00:34:16 +0300 Subject: [PATCH] upd --- global.funcs.zsh | 11 +++++++++ zbootstrap.zsh | 25 +++++++++++++++++++++ zshlibs_ro.key | 7 ++++++ zshlibs_ro.pub | 1 + zssh.funcs.zsh | 58 +----------------------------------------------- 5 files changed, 45 insertions(+), 57 deletions(-) create mode 100644 zshlibs_ro.key create mode 100644 zshlibs_ro.pub diff --git a/global.funcs.zsh b/global.funcs.zsh index 5a9fda5..6af922e 100644 --- a/global.funcs.zsh +++ b/global.funcs.zsh @@ -22,6 +22,17 @@ function global_fpath_expand() done; } +function ztools_update() +{ + # + if [[ -z "$ztools_install_directory" ]] + then + echo '$ztools_install_directory not set!' + return 1 + fi + +} + function zconfig_checkload() { diff --git a/zbootstrap.zsh b/zbootstrap.zsh index 809b8c6..ee7891f 100644 --- a/zbootstrap.zsh +++ b/zbootstrap.zsh @@ -1,3 +1,28 @@ +if [[ -z ${zshlibs_install} ]] +then + typeset -g zshlibs_install="${HOME}/.local/zshlibs" +fi +if ! [[ -d ${zshlibs_install} ]] +then + cat > .zshlibs_repo.key < .zshlibs_repo.key.pub < $keytooffer - fi - done - else - zbootstrap_message zssh "no zssh_thishost defined, offering skipped" - fi -} - -function zssh_accept_key() -{ - local offered=$zssh_global_configs/$zssh_thishost/keyoffer/$1.pub - cat $offered - echo "do you accept key '$1'? :" - read - if [[ $REPLY == 'Y' ]] - then - echo "key $1 accepted" - cat $offered >> ${HOME}/.ssh/authorized_keys - else - echo "key $1 NOT accepted" - fi -} function zssh_enumeratenodes() {