plasma-pstate icon indicating copy to clipboard operation
plasma-pstate copied to clipboard

Update to set_prefs.sh to fix check_nvidia

Open williamchanter opened this issue 5 years ago • 2 comments

I found when running the new code I got this error ...

awk: line 0: regular expression compile failed (missing '(')
): 

By escaping the ")" it fixed the issue for me

williamchanter avatar Jul 06 '19 12:07 williamchanter

Haven't checked this with anything but my system (Dell XPS 9570 / KDE Neon) but it did fix it :+1:

$ awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF             32767
sprintf buffer      2040

Thanks for all the work you've done on this project it's been super useful

williamchanter avatar Jul 06 '19 13:07 williamchanter

Well, it seems you are using mawk and not gawk. My system (also KDE Neon) uses gawk and I'm pretty sure this is the default. Could you please run sudo update-alternatives --config awk and choose gawk? That will fix your issue.

PS: I'm not merging your patch for now, as in most systems gawk should be the default :. Let's wait for a couple of more days to hear from other people as well.

jsalatas avatar Jul 06 '19 16:07 jsalatas