Skip to content

Commit

Permalink
Revert simplification of find/replace for POSIX compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgkau authored and jackpot51 committed Jan 8, 2021
1 parent 208166c commit 37ce79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system76driver/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def perform(self):
content += 'then\n'
content += ' newmode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On}"\n'
content += 'else\n'
content += ' newmode=${oldmode//\}/, ForceFullCompositionPipeline=On\}}\nfi\n\n'
content += ' newmode=$(echo "$oldmode" | sed \'s/}/, ForceFullCompositionPipeline=On}/g\')\nfi\n\n'
content += '# Apply the new display settings.\n'
content += 'nvidia-settings --assign CurrentMetaMode="$newmode"\n'
self.atomic_write(content)
Expand Down

0 comments on commit 37ce79f

Please sign in to comment.