Browse Source

Make regex case-insensitive

Chimo 1 week ago
parent
commit
4bd9a9f332
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      is-reboot-required.sh

+ 1
- 1
is-reboot-required.sh View File

@@ -4,7 +4,7 @@ set -euo pipefail
4 4
 IFS=$'\n\t'
5 5
 
6 6
 RUNNING_VERSION=$(uname -r)
7
-FS_VERSION=$(file /boot/vmlinuz-linux | sed -rn 's/.* version ([0-9\.A-Z-]+) .*/\1/p')
7
+FS_VERSION=$(file /boot/vmlinuz-linux | sed -rn 's/.* version ([0-9\.A-Z-]+) .*/\1/pi')
8 8
 
9 9
 if [ ! "${RUNNING_VERSION}" = ${FS_VERSION} ]; then
10 10
     echo "Reboot required."