From 03ac1685dcbde9354eccc199d26437afc6d97073 Mon Sep 17 00:00:00 2001 From: Tiago Programmer Date: Fri, 20 Dec 2019 18:52:36 +0000 Subject: [PATCH] Correct mistakes - second try --- tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests.sh b/tests.sh index 8e35078..d266ac6 100755 --- a/tests.sh +++ b/tests.sh @@ -32,7 +32,7 @@ f_compare_version(){ # Second: check if greater or lesser local test_v - $test_v=$(printf "%s\n%s" "$required_v" "$getted_v" | sort -V | head -n 1) + test_v="$(printf "%s\n%s" "$required_v" "$getted_v" | sort -V | head -n 1)" case $test_v in $getted_v) return 0 ;; $required_v) return 1 ;; @@ -44,13 +44,13 @@ f_compare_version(){ f_test_nano_version() { local version - $version=$(nano --version | cut -d ' ' -f 4) + version="$(nano --version | cut -d ' ' -f 4)" return $(f_compare_version $G_NANO_VERSION $version) } f_test_shellcheck_version() { local version - $version=$(nano --version | cut -d ' ' -f 8) + version="$(nano --version | cut -d ' ' -f 8)" return $(f_compare_version $G_SHELLCHECK_VERSION $version) }