mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-04 15:57:09 +00:00
* better version check in linux build script Running `BuildLinux.sh` on Debian Trixie (and probably on other platforms) results in this warning: ``` $ sudo ./BuildLinux.sh -u ./linux.d/debian: line 32: [: ==: unary operator expected ./linux.d/debian: line 32: [: ==: unary operator expected ... ``` The script is looking for the `VERSION_ID` variable in `/etc/os-release`, but that variable is optional (see https://www.linux.org/docs/man5/os-release.html) and is not present in my install of Debian Trixie. The script handles the missing variable incorrectly, resulting in the above warning. This commit fixes the version check to be more tolerant and IMO clearer. Tested on Ubuntu 22.04, 24.04, and Debian Trixie.
1.6 KiB
1.6 KiB