mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-24 03:50:16 +10:00
Support 1.2.25.1011.g0348b2ea
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<center>
|
<center>
|
||||||
<h4 align="center">Adblock for the Spotify desktop client on Linux & macOS</h4>
|
<h4 align="center">Adblock for the Spotify desktop client on Linux & macOS</h4>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<strong>Latest supported version:</strong> 1.2.25.1009.g075ce884
|
<strong>Latest supported version:</strong> 1.2.25.1011.g0348b2ea
|
||||||
</p>
|
</p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
|
|||||||
4
spotx.sh
4
spotx.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
buildVer="1.2.25.1009.g075ce884"
|
buildVer="1.2.25.1011.g0348b2ea"
|
||||||
|
|
||||||
case $(uname | tr '[:upper:]' '[:lower:]') in
|
case $(uname | tr '[:upper:]' '[:lower:]') in
|
||||||
darwin*) platformType='macOS' ;;
|
darwin*) platformType='macOS' ;;
|
||||||
@@ -190,7 +190,7 @@ search_path_linux () {
|
|||||||
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 | rev | cut -d/ -f3- | rev)
|
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)
|
||||||
[[ -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