mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 19:26:22 +02:00
inject.sh: use direct comparison for metmp
use of the e function would slow down execution, and it's mostly unnecessary in this case. the e function is only needed if we want to confirm via user message that a file exists. that is not needed here. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-2
@@ -162,7 +162,7 @@ extract_intel_me()
|
|||||||
|
|
||||||
find_me()
|
find_me()
|
||||||
{
|
{
|
||||||
e "$_metmp" f && exit 1
|
[ -f "$_metmp" ] && exit 1
|
||||||
[ -L "$1" ] && return 0
|
[ -L "$1" ] && return 0
|
||||||
|
|
||||||
_7ztest="${_7ztest}a" && _r="-r" && [ -n "$mfs" ] && _r=""
|
_7ztest="${_7ztest}a" && _r="-r" && [ -n "$mfs" ] && _r=""
|
||||||
@@ -171,7 +171,7 @@ find_me()
|
|||||||
"$mecleaner" $mfs $_r -t -O "$_metmp" "$1" || "$me7updateparser" \
|
"$mecleaner" $mfs $_r -t -O "$_metmp" "$1" || "$me7updateparser" \
|
||||||
-O "$_metmp" "$1" || extract_archive "$1" "$_7ztest" || return 0
|
-O "$_metmp" "$1" || extract_archive "$1" "$_7ztest" || return 0
|
||||||
|
|
||||||
e "$_metmp" f && exit 1
|
[ -f "$_metmp" ] && exit 1
|
||||||
( fx_ find_me x_ find "$_7ztest" -type f ) || exit 1; :
|
( fx_ find_me x_ find "$_7ztest" -type f ) || exit 1; :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user