comments and cleanup

This commit is contained in:
AJ ONeal
2020-10-20 20:46:23 -06:00
parent 71e67540a1
commit 20a278f2d6
3 changed files with 9 additions and 15 deletions
+1 -7
View File
@@ -5,13 +5,7 @@ tagline: |
dotenv: a cross-platform tool to load a .env and run a command.
---
## Updating `dotenv`
```bash
webi dotenv@stable
```
Use the `@beta` tag for pre-releases, or `@x.y.z` for a specific version.
To update or switch versions, run `webi dotenv@stable`.
## Cheat Sheet
+3 -3
View File
@@ -25,15 +25,15 @@ function __init_dotenv() {
# 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:
# 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:
# 2.0.0
# 1.0.0
echo "$(dotenv --version 2>/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
}