Skip to content

Commit

Permalink
fix grep output polluting the results
Browse files Browse the repository at this point in the history
  • Loading branch information
alkazar committed Aug 1, 2024
1 parent 26818c6 commit 6806d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/libexec/gamescope-sdl-workaround
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ while IFS= read -r GPU
do
# We will utilize grep and its Perl regex engine for this, the bash regex engine is too basic
# If we match with a card that requires sdl workaround
if echo "$GPU" | grep -P "($FINAL_RE)"; then
if echo "$GPU" | grep -P "($FINAL_RE)" > /dev/null; then
# Write info to journal
echo "INFO: $GPU detected" | systemd-cat -t gamescope-sdl-workaround -p info
echo "INFO: SDL backend workaround will be applied." | systemd-cat -t gamescope-sdl-workaround -p info
Expand Down

0 comments on commit 6806d15

Please sign in to comment.