From: Krayon Date: Fri, 13 Mar 2020 21:25:40 +0000 (+1100) Subject: Use existing curl version var X-Git-Tag: v0.7.0~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc552c602eca94737b66e62f4c4087a4e8f251e4;p=thirdparty%2Fdehydrated.git Use existing curl version var Signed-off-by: Krayon --- diff --git a/dehydrated b/dehydrated index e865e71..351d35e 100755 --- a/dehydrated +++ b/dehydrated @@ -1126,7 +1126,7 @@ command_version() { echo "Used software:" [[ -n "${BASH_VERSION:-}" ]] && echo " bash: ${BASH_VERSION}" [[ -n "${ZSH_VERSION:-}" ]] && echo " zsh: ${ZSH_VERSION}" - echo " curl: $(curl --version 2>&1 | head -n1 | cut -d" " -f1-2)" + echo " curl: ${CURL_VERSION}" if [[ "${OSTYPE}" =~ "BSD" ]]; then echo " awk, sed, mktemp, grep, diff: BSD base system versions" else