From 97b13b2a6014f2fed4adc93f69a7a937f79c2a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Fri, 22 Mar 2019 23:59:09 +0100 Subject: [PATCH] `cut < file` instead of `cat file | cut` --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index d0dfaf6..4f2a9ce 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -231,7 +231,7 @@ if is_debian; then test -x "${LSB_RELEASE_BIN}" || failed "IS_LSBRELEASE" "lsb_release is missing or not executable" ## only the major version matters lhs=$(${LSB_RELEASE_BIN} --release --short | cut -d "." -f 1) - rhs=$(cat /etc/debian_version | cut -d "." -f 1) + rhs=$(cut -d "." -f 1 < /etc/debian_version) test "$lhs" = "$rhs" || failed "IS_LSBRELEASE" "release is not consistent between lsb_release and /etc/debian_version" fi