diff --git a/install.sh b/install.sh index 0e65d9e..e0b6510 100755 --- a/install.sh +++ b/install.sh @@ -78,7 +78,7 @@ function get_kernel_version() { function check_kernel_headers() { VER_RUN=$(get_kernel_version) - VER_HDR=$(dpkg -L raspberrypi-kernel-headers | egrep -m1 "/lib/modules/[^-]+/build" | awk -F'/' '{ print $4; }') + VER_HDR=$(dpkg -L raspberrypi-kernel-headers | egrep -m1 "/lib/modules/[[:print:]]+/build" | awk -F'/' '{ print $4; }') [ "X$VER_RUN" == "X$VER_HDR" ] && { return 0 }