Fix shellcheck error in bin/setup

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren
2020-11-17 21:22:48 +01:00
parent 64d6073aa1
commit cbce0caa84

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' "$@" | { [ "$(uname)" = "Linux" ] && (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