fix: macOS compatibility for bin/setup

After carefully studying the man pages of GNU sort and BSD sort,
we concluded that the version_lt function should also work on macOS.

Testing seemed to confirm that.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-06-04 20:27:28 +02:00
parent acf24a1dd2
commit bbee1aa278
2 changed files with 2 additions and 1 deletions

View file

@ -2,7 +2,7 @@
set -e
version_lt() { test "$(printf '%s\n' "$@" | { [ "$(uname)" = "Linux" ] && (sort -V || sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n;) } | tail -n 1)" != "$1"; }
version_lt() { test "$(printf '%s\n' "$@" | (sort -V || sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n;) | tail -n 1)" != "$1"; }
# run command at repo root
CURRENT_PATH=$PWD

View file

@ -19,6 +19,7 @@ special actions.
- Fix that permission errors can break existing connections to a note, causing inconsistent note content and changes not being saved
- Fix speaker notes not showing up in the presentation view
- Fix issues with upgrading some dependencies by upgrading to Yarn 3
- Fix macOS compatibility of `bin/setup` script
## <i class="fa fa-tag"></i> 1.9.7 <i class="fa fa-calendar-o"></i> 2023-02-19