AsahiLinux / asahi-scripts

Miscellaneous admin scripts for the Asahi Linux reference distro
MIT License
45 stars 32 forks source link

asahi-diagnose: use posix-compliant equality comparison #48

Closed NoisyCoil closed 4 weeks ago

NoisyCoil commented 2 months ago

Part of asahi-diagnose fails to run on Debian because == is not posix compliant and undefined in dash (~ /bin/sh). This MR fixes this.

For the record, AFAICS there's another source of posix non-compliance in asahi-diagnose, that being local profile_config=... in check_macaudio_profile() (local is not defined in posix). local is defined in dash though, so I'm not changing that in this MR. If you would like me to change it nonetheless I can do it in another MR.