From 89ee3d34c88cb8b83d3b4f28ec914ffad9c472f8 Mon Sep 17 00:00:00 2001 From: Jens Giessmann Date: Wed, 17 Oct 2018 22:33:05 +0200 Subject: [PATCH] quotes --- plugins/kernel_version_compare | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kernel_version_compare b/plugins/kernel_version_compare index 753ef33..fc7cc78 100755 --- a/plugins/kernel_version_compare +++ b/plugins/kernel_version_compare @@ -37,7 +37,7 @@ dpkg_get_latest_installed () { for i in $(dpkg -l | grep ${image_prefix}-$(uname -r | cut -d '.' -f1) | awk '{print $3}') do - dpkg --compare-versions $i gt $latest && latest="${i}" + dpkg --compare-versions "${i}" gt "${latest}" && latest="${i}" done echo "${latest}" } @@ -51,7 +51,7 @@ fi # -------------------------------------------------------------------- # write plugin output if available # -------------------------------------------------------------------- -if [ ! -z $K_RUN ]; then +if [ -n "${K_RUN}" ]; then echo '<<>>' echo "${K_NAME} ${K_RUN} ${K_INST}" fi