Skip to content

Commit

Permalink
quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
handcode committed Oct 17, 2018
1 parent 5fc8eb6 commit 89ee3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/kernel_version_compare
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand All @@ -51,7 +51,7 @@ fi
# --------------------------------------------------------------------
# write plugin output if available
# --------------------------------------------------------------------
if [ ! -z $K_RUN ]; then
if [ -n "${K_RUN}" ]; then
echo '<<<kernel_version_compare>>>'
echo "${K_NAME} ${K_RUN} ${K_INST}"
fi

0 comments on commit 89ee3d3

Please sign in to comment.