Skip to content

Commit

Permalink
fix: incorrect usage of grep (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
yacchi committed Sep 2, 2021
1 parent 8490526 commit 30d27cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Expand Up @@ -681,7 +681,7 @@ select_from_preset_version() {
shim_versions=$(get_shim_versions "$shim_name")
if [ -n "$shim_versions" ]; then
preset_versions=$(preset_versions "$shim_name")
grep -f "$shim_versions" "$preset_versions" | head -n 1 | xargs -IVERSION printf "%s\\n" VERSION
grep -F "$shim_versions" <<<"$preset_versions" | head -n 1 | xargs -IVERSION printf "%s\\n" VERSION
fi
}

Expand Down

0 comments on commit 30d27cb

Please sign in to comment.