mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-24 23:31:48 +01:00
Fix error on bsd sed
gnu tools > bsd tools.
This commit is contained in:
parent
454b5b027b
commit
245370e98d
@ -392,7 +392,7 @@ version_check() {
|
|||||||
else
|
else
|
||||||
log "Checking for updates..."
|
log "Checking for updates..."
|
||||||
github_api=$(curl https://api.github.com/repos/LukeZGD/Legacy-iOS-Kit/releases/latest 2>/dev/null)
|
github_api=$(curl https://api.github.com/repos/LukeZGD/Legacy-iOS-Kit/releases/latest 2>/dev/null)
|
||||||
version_latest=$(echo "$github_api" | grep "latest/Legacy-iOS-Kit_complete" | cut -c 123- | cut -c -9 | sed -r 's/\.$//')
|
version_latest=$(echo "$github_api" | grep "latest/Legacy-iOS-Kit_complete" | cut -c 123- | cut -c -9 | sed -e 's/\.$//')
|
||||||
git_hash_latest=$(echo "$github_api" | grep "latest/git-hash" | cut -c 119- | cut -c -7)
|
git_hash_latest=$(echo "$github_api" | grep "latest/git-hash" | cut -c 119- | cut -c -7)
|
||||||
if [[ -z $version_latest ]]; then
|
if [[ -z $version_latest ]]; then
|
||||||
warn "Failed to check for updates. GitHub may be down or blocked by your network."
|
warn "Failed to check for updates. GitHub may be down or blocked by your network."
|
||||||
|
Loading…
Reference in New Issue
Block a user