Skip to content

Commit 81709db

Browse files
committed
Fix shim_plugin_version
1 parent c60110c commit 81709db

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/utils.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ shim_plugin_versions() {
567567
local shim_path
568568
shim_path="$(asdf_data_dir)/shims/${executable_name}"
569569
if [ -x "$shim_path" ]; then
570-
grep -y "# asdf-plugin: " "$shim_path" 2>/dev/null | sed -e "s/# asdf-plugin: //" | uniq
570+
grep "# asdf-plugin: " "$shim_path" 2>/dev/null | sed -e "s/# asdf-plugin: //" | uniq
571571
else
572572
echo "asdf: unknown shim $executable_name"
573573
return 1

‎test/banned_commands.bats‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ banned_commands=(
99
# It's best to avoid eval as it makes it easier to accidentally execute
1010
# arbitrary strings
1111
eval
12+
13+
# does not work on alpine and should be grep -i either way
14+
"grep -y"
1215
)
1316

1417
setup() {

0 commit comments

Comments
 (0)