projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
keypairs
/
install.sh
diff --git
a/keypairs/install.sh
b/keypairs/install.sh
index 48c96aa6c6662dcc0f934c345bbe0ebcde8bf112..38b7fc7d1f6b16330b3a9599b0a52c7d4bbcf0b0 100644
(file)
--- a/
keypairs/install.sh
+++ b/
keypairs/install.sh
@@
-20,7
+20,7
@@
function __init_keypairs() {
pkg_install() {
# $HOME/.local/opt/keypairs-v0.6.5/bin
pkg_install() {
# $HOME/.local/opt/keypairs-v0.6.5/bin
- mkdir -p "$
pkg_src_bin
"
+ mkdir -p "$
(dirname $pkg_src_cmd)
"
# mv ./keypairs* "$HOME/.local/opt/keypairs-v0.6.5/bin/keypairs"
mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
# mv ./keypairs* "$HOME/.local/opt/keypairs-v0.6.5/bin/keypairs"
mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
@@
-34,7
+34,7
@@
function __init_keypairs() {
# keypairs v0.6.5 (7e6fd17) 2020-10-21T06:26:46Z
# This trims it down to just the version number:
# 0.6.5
# keypairs v0.6.5 (7e6fd17) 2020-10-21T06:26:46Z
# This trims it down to just the version number:
# 0.6.5
- echo "$(keypairs --version 2>/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
+ echo "$(keypairs --version 2>
/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
}
}
}
}