From 23486abef3abafbe36b34ebac880f993804356f3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 9 May 2025 00:26:33 +0100 Subject: 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 --- include/inject.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/inject.sh') diff --git a/include/inject.sh b/include/inject.sh index 135df0c2..8485d7e8 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -162,7 +162,7 @@ extract_intel_me() find_me() { - e "$_metmp" f && exit 1 + [ -f "$_metmp" ] && exit 1 [ -L "$1" ] && return 0 _7ztest="${_7ztest}a" && _r="-r" && [ -n "$mfs" ] && _r="" @@ -171,7 +171,7 @@ find_me() "$mecleaner" $mfs $_r -t -O "$_metmp" "$1" || "$me7updateparser" \ -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; : } -- cgit v1.2.1