Skip to content

Commit

Permalink
envsetup: Use traditional grep command
Browse files Browse the repository at this point in the history
If user has aliases grep to something else e.g. ripgrep or ugrep etc.
this test will fail. Therefore do not use alias for grep if one exists

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Nov 8, 2023
1 parent 542fb1d commit c44e88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fi

projects="`yoe_get_projects | tr '\n' ' '`"

echo "$projects" | grep -q "\<$PROJECT\>" >&2
echo "$projects" | \grep -q "\<$PROJECT\>" >&2

if [ $? != 0 ]; then
echo
Expand Down

0 comments on commit c44e88e

Please sign in to comment.