X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=ssh-pubkey%2Finstall.sh;h=6f2ef5e11bad41c9497ae2183da7df13ba1c077e;hp=dc71cba32c0d6524255af5fd1013dde9c10c945b;hb=91512157ab426c87e0a82b594620e90e324b23a3;hpb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16 diff --git a/ssh-pubkey/install.sh b/ssh-pubkey/install.sh index dc71cba..6f2ef5e 100644 --- a/ssh-pubkey/install.sh +++ b/ssh-pubkey/install.sh @@ -3,14 +3,18 @@ set -e set -u function __install_ssh_pubkey() { - MY_CMD="ssh-pubkey" + my_cmd="ssh-pubkey" - 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" + 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 - "$HOME/.local/bin/$MY_CMD" + "$HOME/.local/bin/${my_cmd}" } __install_ssh_pubkey