mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 17:24:41 +02:00
* feat: add suppress output line regex support Signed-off-by: yxxhero <aiopsclub@163.com>
6 lines
386 B
Bash
6 lines
386 B
Bash
#!/usr/bin/env bash
|
|
|
|
function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
|
|
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" == "$1"; }
|
|
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
|
|
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; } |