optimization

This commit is contained in:
Htylol 2024-10-28 06:17:05 +05:00
parent c15ec0102f
commit 068d148eab

@ -870,7 +870,11 @@ search_desktop_file () {
done < "$desktop_file" done < "$desktop_file"
if [[ $portwine_exe == "${EXEC_DESKTOP//\"/}" ]] ; then if [[ $portwine_exe == "${EXEC_DESKTOP//\"/}" ]] ; then
DESKTOP_CORRECT_FILE="$desktop_file" DESKTOP_CORRECT_FILE="$desktop_file"
break
fi fi
fi
fi
done
if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then
while IFS=" " read -r -a line2 ; do while IFS=" " read -r -a line2 ; do
if [[ -z ${line2[0]} ]] \ if [[ -z ${line2[0]} ]] \
@ -889,9 +893,6 @@ search_desktop_file () {
fi fi
done < "$PORT_WINE_TMP_PATH/statistics" done < "$PORT_WINE_TMP_PATH/statistics"
fi fi
fi
fi
done
IFS="$orig_IFS" IFS="$orig_IFS"
if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then if [[ $DESKTOP_WITH_TIME == enabled ]] || [[ $SORT_WITH_TIME == enabled ]] ; then
local line3 line4 count_line i TIME_TOTAL SKIP_REPAIR local line3 line4 count_line i TIME_TOTAL SKIP_REPAIR