handcode / check_mk_kernel_version

check running vs. installed kernel versions
2 stars 2 forks source link

plugin script seems to be bash, not sh #1

Closed mdklapwijk closed 6 years ago

mdklapwijk commented 6 years ago
# sh plugins/kernel_version_compare
plugins/kernel_version_compare: 14: [: Linux: unexpected operator
plugins/kernel_version_compare: 21: [: GNU/Linux: unexpected operator
# bash plugins/kernel_version_compare
<<<kernel_version_compare>>>
Linux 4.9.110-3+deb9u5 4.9.110-3+deb9u6
handcode commented 6 years ago

You are right, but we cannot switch to hardcoded /bin/bash because bash on FreeBSD will be installed in /usr/local/bin/bash (ports/packages), and more importantly is not installed by default so even '/usr/bin/env bash' is not a valid solution.

I will release an /bin/sh compatible version with some changes in the debian version comparison in the next days.

Thanks for reminder!

handcode commented 6 years ago

fixed in 0.1.2 thanks!