mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
Fix detection for the new revision string in the package
The change is compatible with the old one
This commit is contained in:
parent
bf163735e9
commit
5f97659dfd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user