X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=ssh-setpass%2Finstall.sh;h=67ef3b2ca70f7202fc6319f26a4336763abec7b2;hb=91512157ab426c87e0a82b594620e90e324b23a3;hp=014b68a4c13ffcecd41197d18cd4df117e49c7e2;hpb=90f0681ea852308f71ded6983f514d7685adc837;p=webi-installers%2F.git diff --git a/ssh-setpass/install.sh b/ssh-setpass/install.sh index 014b68a..67ef3b2 100644 --- a/ssh-setpass/install.sh +++ b/ssh-setpass/install.sh @@ -1,6 +1,22 @@ #!/bin/bash - set -e set -u -ssh-keygen -p -f "$HOME/.ssh/id_rsa" +function __install_ssh_setpass() { + my_cmd="ssh-setpass" + + rm -f "$HOME/.local/bin/${my_cmd}" + + webi_download \ + "$WEBI_HOST/packages/${my_cmd}/${my_cmd}.sh" \ + "$HOME/.local/bin/${my_cmd}" + + chmod a+x "$HOME/.local/bin/${my_cmd}" + + # run the command + echo '' + echo 'Set passphrase for ~/.ssh/id_rsa?' + "$HOME/.local/bin/${my_cmd}" +} + +__install_ssh_setpass