mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-11 17:37:20 +10:00
Exclude additional paths on Linux
- excludes flatpak's ".removed" directories so only the active flatpak install is targeted by the script
This commit is contained in:
2
spotx.sh
2
spotx.sh
@@ -280,7 +280,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/*" -not -path "*snapd/snap*" -not -path "*snap/spotify*" -not -path "*snap/bin*" -name "xpui.spa" -size -20M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev)
|
||||
installPath=$(find "${path}" -type f -path "*/spotify*Apps/*" -not -path "*snapd/snap*" -not -path "*snap/spotify*" -not -path "*snap/bin*" -not -path "*flatpak/.removed*" -name "xpui.spa" -size -20M -size +3M -print -quit 2>/dev/null | rev | cut -d/ -f3- | rev)
|
||||
[[ -n "${installPath}" ]] && return 0
|
||||
pgrep -x find > /dev/null || break
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user