Trevor Brown
1c8648dfe3
Don't allow unset variables in new Bash files
2022-05-17 09:30:06 -04:00
Trevor Brown
1ed64eb119
Correct array expansion syntax
2022-05-17 09:03:04 -04:00
Trevor Brown
97aab882e7
Fix unbound variable in shim env test
2022-05-17 09:03:04 -04:00
Trevor Brown
6fec5ea288
fixup! Don't allow unset variables numerous files
2022-05-17 09:03:04 -04:00
Trevor Brown
3352d62e03
Don't allow unset variables numerous files
2022-05-17 09:03:02 -04:00
Trevor Brown
85a056a11e
Don't allow unset variables in the where command
2022-05-17 08:54:41 -04:00
Trevor Brown
09ecd4d96e
fixup! Don't allow unset variables in utils.bash
2022-05-17 08:54:41 -04:00
Trevor Brown
d456f45542
Don't allow unset variables in the plugin commands
2022-05-17 08:54:39 -04:00
Trevor Brown
27a078f17b
Don't allow unset variables in utils.bash
2022-05-17 08:49:59 -04:00
Trevor Brown
cc6affad73
Don't allow unset variables in the help and latest commands
2022-05-17 08:49:57 -04:00
Trevor Brown
d94428060c
Don't allow unset variables in the plugin-add command
2022-05-17 08:48:55 -04:00
Trevor Brown
e72f421be2
Don't allow unset variables in the list commands
2022-05-17 08:48:12 -04:00
Trevor Brown
03f2fb7e4c
Don't allow unset variables
2022-05-17 08:43:21 -04:00
Daniel Schömer
86537d2a6d
docs: ASDF_DIR/ASDF_DATA_DIR absolute paths ( #1225 )
...
docs: ASDF_DIR/ASDF_DATA_DIR strict absolute paths
This PR updates the documentation for environment variables `ASDF_DIR` and `ASDF_DATA_DIR`.
Both variables should be set to _absolute_ paths to avoid issues with plugins changing the current working directory.
2022-05-17 08:03:40 -04:00
Trevor Brown
788ccab597
fix: only iterate over directories in the plugins/ directory ( #1228 )
...
Fixes part of #1029
2022-05-12 07:48:54 -04:00
Trevor Brown
37046c7c64
Merge branch 'imefisto-master'
2022-05-09 08:09:52 -04:00
Ignacio El Kadre
91136234e9
fix: instead /tmp, use TMPDIR if defined
2022-05-09 08:09:27 -04:00
Trevor Brown
39909e01af
fix: add asdf to list of banned commands ( #1224 )
...
Ban recusive asdf calls as they are inefficient and may introduce bugs.
If you find yourself needing to invoke an `asdf` command from within
asdf code, please source the appropriate file and invoke the
corresponding function.
2022-05-06 09:21:06 -04:00
Josué Lobo
a9caa5bdff
fix: fixing bats ( #1215 )
...
docs/pt-br/contribute/core.md
2022-04-26 10:05:12 -04:00
Josué Lobo
068432f114
docs: updates portuguese translation in the documentation ( #1210 )
...
* docs: <getting started> translate missing snippets
* docs: translate missing snippets
* docs: translate plugins create article
* docs: translate documentation to contribute
* docs: translate contribute core
* docs: translate first-party-plugins
* docs: translate contribute/github-actiosn
2022-04-26 09:01:58 -04:00
Trevor Brown
27f7ef7852
fix: don't invoke asdf inside asdf commands ( #1208 )
...
* fix: don't invoke asdf inside asdf commands
Recursive calls have a number of disadvantages:
* Poorer performance since each invocation spawns and new process and re-executes all the code in bin/asdf
* Makes debugging more difficult
* More likely to introduce subtle bugs and the possibility for infinite loops
2022-04-25 08:45:19 -04:00
Dave Nicolson
713bcebaa7
docs: update version ( #1214 )
2022-04-25 08:18:21 -04:00
skwerlman
5a89563c0a
fix: update elvish to 0.18.0
...
* replace deprecated 'except' with 'catch'
2022-04-22 07:50:53 -04:00
Shane Liesegang
6fc4bb8fc6
fix: make fish shell setup match other shells ( #1209 )
...
The asdf.sh file only sets `ASDF_DIR` if it hasn't already been set. This change to the fish file has it do the same.
2022-04-21 09:40:43 -04:00
github-actions[bot]
77fd510bdc
chore: release 0.10.0 ( #1111 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-15 17:45:34 -04:00
Trevor Brown
448f750891
fix: local plugin in then clause too ( #1203 )
...
Co-authored-by: Kazuhiro NISHIYAMA <znz@users.noreply.github.com>
2022-04-14 11:10:17 -04:00
Bo Lopker
de6e22f909
fix: remove comments from whole file instead of line by line for performance ( #1198 )
2022-04-08 10:44:07 -04:00
Samuel Bodin
7493f4099c
docs: remove github discussion reference ( #1175 )
...
* Update config.yml
* Update sidebar.js
* Update navbar.js
2022-03-02 08:46:37 -05:00
cherryblossom000
682b7a1d6d
fix(elvish): prepend asdf paths to $PATH
( #1174 )
...
* fix(elvish): prepend asdf paths to `$PATH`
* refactor(elvish): minor improvements
2022-02-28 08:58:18 -05:00
MichaelDimmitt
e0d27e6c3c
fix link going to http instead of https ( #1169 )
2022-02-14 11:27:59 -05:00
Trevor Brown
6996b63038
docs: remove github discussions link ( #1171 )
2022-02-14 11:20:52 -05:00
Bruno Roque
824550ed20
feat: upgrade elvish to 0.17.0 ( #1159 )
...
* feat: upgrade elvish to 0.17.0
* Remove || and fix array slice
* Update elvish config path
* Tests use new path
* Escape $ in bats
* Fix legacy assignment in test
2022-02-11 17:19:55 -05:00
Trevor Brown
2a538fe631
Merge branch 'systemmonkey42-issue_1120'
2022-01-27 11:20:46 -05:00
David le Blanc
b2b71e6402
Added test for handling config file values containing "=" in their text
2022-01-27 11:20:08 -05:00
David le Blanc
afd6224298
Fixed config file parsing to handle "=" in value field.
2022-01-27 11:20:08 -05:00
Shengzhou Li
06d469ec4a
docs(website): add simplifed chinese ( #1166 )
...
* docs(website): add simplifed chinese
* docs: format some documentations
2022-01-27 08:02:24 -05:00
Joe Horsnell
b7dd291c98
fix: Prevent unbound variable error with nounset in asdf.sh ( #1158 )
...
`asdf` [v0.9.0][1] included a [bug fix][2] to not override an existing ASDF_DIR.
However, if `ASDF_DIR` is not set at all, then this causes an error when using bash `set -u`, or
`set -o nounset` - see [here][3] for additional info.
[1]: https://github.com/asdf-vm/asdf/releases/tag/v0.9.0
[2]: https://github.com/asdf-vm/asdf/pull/1008
[3]: https://mywiki.wooledge.org/BashFAQ/112
2022-01-19 17:00:53 -05:00
Trevor Brown
853eede94e
docs: correct tag in getting-started.md ( #1151 )
2022-01-05 10:54:06 -05:00
Greg Myers
d52cd52004
docs: update git/bash install docs to use 0.9.1 ( #1140 )
...
Branch 0.8.1 no longer exists, leading to detached head upon checkout
2022-01-05 09:43:23 -05:00
Stephan Kämper
5f287efddc
docs: Fix help text for 'asdf global' ( #1150 )
...
* docs: Fix help text for 'asdf global'
Signed-off-by: Stephan Kämper <the.tester@seasidetesting.com>
2022-01-04 14:09:27 -05:00
Trevor Brown
87137e4103
fix: Ban ls
command ( #1141 )
...
* Ban `ls` command
* Update banned commands test so it only checks bash and sh files
* Only allow `ls` for resolving symlinks
* Replace `ls` commands with `find`
2021-12-29 12:10:39 -05:00
Jochen Schalanda
e61e3d9ade
feat: case-insensitive filtering of unstable versions in latest
( #1139 )
...
* feat: case-insensitive filtering of unstable versions in `latest`
* Fix versions in version_commands tests
2021-12-29 08:50:06 -05:00
Yves Blusseau
288468f93f
fix: don't generate on error if backup file doesn't exists ( #1057 )
...
Signed-off-by: JrCs <90z7oey02@sneakemail.com>
2021-12-23 11:43:41 -05:00
Trevor Brown
6bb07b6d36
docs: Document the latest-stable callback plugin creation docs ( #1132 )
...
Fixes #1110
2021-12-20 10:18:33 -05:00
Alberto de Murga
aafe1e5304
fix: latest --all correctly report plugins as missing ( #1118 )
2021-12-09 16:49:24 +11:00
Trevor Brown
6e4c39c244
fix: ban grep long flags ( #1117 )
...
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-12-09 13:17:49 +11:00
Kerollos Magdy
8e6f0cc370
docs: remove the usage of sudo ( #1116 )
2021-12-07 12:39:34 -05:00
Max Strübing
ac2791e49f
fix: newline after error msg for ASDF_DIR ( #1113 )
...
Co-authored-by: James Hegedus <jthegedus@hey.com>
2021-12-06 21:22:30 +11:00
Alberto de Murga
f85fef533f
feat(latest): adds the flag --all to the latest command ( #1096 )
2021-12-05 23:41:27 +11:00
nozaq
5992abb09e
fix: do not print find
errors ( #1102 )
2021-12-05 19:21:57 +11:00