mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-24 20:10:17 +10:00
Fix Linux detections
This commit is contained in:
2
spotx.sh
2
spotx.sh
@@ -170,7 +170,7 @@ linux_search_path () {
|
|||||||
local path="${path}"
|
local path="${path}"
|
||||||
local timeLimit=$(($(date +%s) + timeout))
|
local timeLimit=$(($(date +%s) + timeout))
|
||||||
while (( $(date +%s) < "${timeLimit}" )); do
|
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
|
[[ -n "${installPath}" ]] && return 0
|
||||||
pgrep -x find > /dev/null || break
|
pgrep -x find > /dev/null || break
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user