Browse Source

Make regex case-insensitive

master
Chimo 2 years 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
IFS=$'\n\t'
RUNNING_VERSION=$(uname -r)
FS_VERSION=$(file /boot/vmlinuz-linux | sed -rn 's/.* version ([0-9\.A-Z-]+) .*/\1/p')
FS_VERSION=$(file /boot/vmlinuz-linux | sed -rn 's/.* version ([0-9\.A-Z-]+) .*/\1/pi')
if [ ! "${RUNNING_VERSION}" = ${FS_VERSION} ]; then
echo "Reboot required."


Loading…
Cancel
Save