Skip to content

Commit

Permalink
fix: Ban use of 'test' (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Dec 19, 2022
1 parent 6a4f51a commit ec972cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ version_not_installed_text() {
}

get_plugin_path() {
if test -n "$1"; then
if [ -n "$1" ]; then
printf "%s\\n" "$(asdf_data_dir)/plugins/$1"
else
printf "%s\\n" "$(asdf_data_dir)/plugins"
Expand Down
2 changes: 2 additions & 0 deletions test/banned_commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ banned_commands=(
# source isn't POSIX compliant. . behaves the same and is POSIX compliant
# Except in fish, where . is deprecated, and will be removed in the future.
source
# For consistency, [ should be used instead. There is a leading space so 'fail_test', etc. is not matched
' test'
)

banned_commands_regex=(
Expand Down

0 comments on commit ec972cb

Please sign in to comment.