mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
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:
parent
acf24a1dd2
commit
bbee1aa278
2 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
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
|
# run command at repo root
|
||||||
CURRENT_PATH=$PWD
|
CURRENT_PATH=$PWD
|
||||||
|
|
|
@ -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 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 speaker notes not showing up in the presentation view
|
||||||
- Fix issues with upgrading some dependencies by upgrading to Yarn 3
|
- 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
|
## <i class="fa fa-tag"></i> 1.9.7 <i class="fa fa-calendar-o"></i> 2023-02-19
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue