Fix Linux detections

This commit is contained in:
jetfir3
2024-02-22 11:52:44 -05:00
committed by GitHub
parent ad65d04761
commit a5af58c7c0

View File

@@ -170,7 +170,7 @@ linux_search_path () {
local path="${path}"
local timeLimit=$(($(date +%s) + timeout))
while (( $(date +%s) < "${timeLimit}" )); do
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -10M -size +3M -print -quit 2>/dev/null | grep -v "snap" | rev | cut -d/ -f3- | rev)
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -name "xpui.spa" -size -15M -size +3M -print -quit 2>/dev/null | grep -v "snap" | rev | cut -d/ -f3- | rev)
[[ -n "${installPath}" ]] && return 0
pgrep -x find > /dev/null || break
sleep 1