projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix(misc): fix kind, gprox, myip, pandoc
[webi-installers/.git]
/
ssh-pubkey
/
install.sh
diff --git
a/ssh-pubkey/install.sh
b/ssh-pubkey/install.sh
index 805f789822bfa96bbb17efdce038874746edce1d..dc71cba32c0d6524255af5fd1013dde9c10c945b 100644
(file)
--- a/
ssh-pubkey/install.sh
+++ b/
ssh-pubkey/install.sh
@@
-1,15
+1,16
@@
#!/bin/bash
#!/bin/bash
+set -e
+set -u
-{
- set -e
- set -u
-
+function __install_ssh_pubkey() {
MY_CMD="ssh-pubkey"
rm -f "$HOME/.local/bin/$MY_CMD"
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"
+ 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"
}
chmod a+x "$HOME/.local/bin/$MY_CMD"
# run the command
"$HOME/.local/bin/$MY_CMD"
}
+
+__install_ssh_pubkey