Fix detection for the new revision string in the package

The change is compatible with the old one
This commit is contained in:
vectorsigma72 2020-04-19 16:58:26 +02:00
parent bf163735e9
commit 5f97659dfd

View File

@ -82,7 +82,7 @@ old_revision='r0000'
for cloverfile in BOOT/BOOTX64.efi CLOVER/CLOVERX64.efi CLOVER/CLOVERIA32.efi; do
cloverpath="${EFI_ROOT_DIR}/EFI/$cloverfile"
if [[ -f "$cloverpath" ]]; then
old_revision=r$(grep --text 'Clover revision:' "$cloverpath" | sed -nE 's/Clover revision: *([0-9]+).*/\1/p')
old_revision=r$(grep --text 'Clover revision:' "${cloverpath}" | sed -nE 's/^.*Clover revision: //p' | sed -nE 's/ *([0-9]+).*/\1/p')
break
fi
done