projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feature(windows): make it more clear that the user needs to update their PATH
[webi-installers/.git]
/
dotenv
/
install.sh
diff --git
a/dotenv/install.sh
b/dotenv/install.sh
index 73026414d997a50752a4dbb822a24784161d4772..60bfb3d8e3bcaf70634102c8f2bf664361792ca0 100644
(file)
--- a/
dotenv/install.sh
+++ b/
dotenv/install.sh
@@
-25,16
+25,16
@@
function __init_dotenv() {
# mv ./dotenv* "$HOME/.local/opt/dotenv-v1.0.0/bin/dotenv"
mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
# mv ./dotenv* "$HOME/.local/opt/dotenv-v1.0.0/bin/dotenv"
mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/
xbin
/dotenv-v1.0.0/bin/dotenv"
+ # chmod a+x "$HOME/.local/
opt
/dotenv-v1.0.0/bin/dotenv"
chmod a+x "$pkg_src_cmd"
}
pkg_get_current_version() {
# 'dotenv version' has output in this format:
chmod a+x "$pkg_src_cmd"
}
pkg_get_current_version() {
# 'dotenv version' has output in this format:
- #
v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
+ #
dotenv v1.0.0 (17c7677) 2020-10-19T23:43:57Z
# This trims it down to just the version number:
# This trims it down to just the version number:
- #
2
.0.0
- echo "$(dotenv --version 2>/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
+ #
1
.0.0
+ echo "$(dotenv --version 2>
/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
}
}
}
}