logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 7d093e5c3489d94e9451aa3b204b703cf041442e
parent 6991be830faad0945010750fd3231dfa99f8ee7e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 11 Feb 2022 16:19:38 +0100

test-bin/sname: FreeBSD fix

Diffstat:

Mtest-bin/sname3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test-bin/sname b/test-bin/sname @@ -1,11 +1,12 @@ #!/usr/bin/env atf-sh atf_test_case generic generic_body() { + # sed is because of FreeBSD atf_check -o "inline:\ sysname=$(uname -s) nodename=$(uname -n) release=$(uname -r) -version=$(uname -v) +version=$(uname -v | sed 's; *$;;') machine=$(uname -m) " ../bin/sname }