Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit e0a7016b authored by Frank Preel's avatar Frank Preel Committed by Nicolas Gelot
Browse files

Test compatible patch version

parent a264820e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ ORIGINAL_SECURITY_PATCH=$(cat "$SECURITY_PATCH")
function versionToInt { printf "%03d%03d%03d%03d" $(echo "$1" | tr '-' ' '); }

I_ORIGINAL_SECURITY_PATCH=$(versionToInt "$ORIGINAL_SECURITY_PATCH")
I_MURENA__SECURITY_PATCH=$(versionToInt 2020-12-05)
I_MURENA__SECURITY_PATCH=$(versionToInt 2021-12-05)

if [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ ORIGINAL_SECURITY_PATCH=$(cat "$SECURITY_PATCH")
function versionToInt { printf "%03d%03d%03d%03d" $(echo "$1" | tr '-' ' '); }

I_ORIGINAL_SECURITY_PATCH=$(versionToInt "$ORIGINAL_SECURITY_PATCH")
I_MURENA__SECURITY_PATCH=$(versionToInt 2020-12-05)
I_MURENA__SECURITY_PATCH=$(versionToInt 2021-12-05)

if [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ ORIGINAL_SECURITY_PATCH=$(cat "$SECURITY_PATCH")
function versionToInt { printf "%03d%03d%03d%03d" $(echo "$1" | tr '-' ' '); }

I_ORIGINAL_SECURITY_PATCH=$(versionToInt "$ORIGINAL_SECURITY_PATCH")
I_MURENA__SECURITY_PATCH=$(versionToInt 2020-12-05)
I_MURENA__SECURITY_PATCH=$(versionToInt 2021-12-05)

if [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ ORIGINAL_SECURITY_PATCH=$(cat "$SECURITY_PATCH")
function versionToInt { printf "%03d%03d%03d%03d" $(echo "$1" | tr '-' ' '); }

I_ORIGINAL_SECURITY_PATCH=$(versionToInt "$ORIGINAL_SECURITY_PATCH")
I_MURENA__SECURITY_PATCH=$(versionToInt 2020-12-05)
I_MURENA__SECURITY_PATCH=$(versionToInt 2021-12-05)

if [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ ORIGINAL_SECURITY_PATCH=$(cat "$SECURITY_PATCH")
function versionToInt { printf "%03d%03d%03d%03d" $(echo "$1" | tr '-' ' '); }

I_ORIGINAL_SECURITY_PATCH=$(versionToInt "$ORIGINAL_SECURITY_PATCH")
I_MURENA__SECURITY_PATCH=$(versionToInt 2020-12-05)
I_MURENA__SECURITY_PATCH=$(versionToInt 2021-12-05)

if [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then