From 3e7578e3a18e1906de8ef36cc77b48db9f15d084 Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Tue, 15 Jun 2021 08:34:37 +0200 Subject: [PATCH] FIX made bash script compatible with defunct MacOs --- install.ps1 | 2 +- install.sh | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/install.ps1 b/install.ps1 index c578532..92465c9 100644 --- a/install.ps1 +++ b/install.ps1 @@ -81,7 +81,7 @@ if ($PSVersionTable.PSVersion.Major -gt $PSMinVersion) { Write-Done # Installing. - Write-Part "INSTALLING "; + Write-Part "INSTALLING"; cd $sp_dot_dir Copy-Item dribbblish.js ..\..\Extensions Copy-Item dribbblish-dynamic.js ..\..\Extensions diff --git a/install.sh b/install.sh index 800d250..cf8c6f3 100644 --- a/install.sh +++ b/install.sh @@ -7,10 +7,9 @@ set -e if [ $# -eq 0 ]; then latest_release_uri="https://api.github.com/repos/JulienMaille/dribbblish-dynamic-theme/releases/latest" echo "DOWNLOADING $latest_release_uri" - version=$( - command curl -sSf "$latest_release_uri" | - command grep -Po '(?<="tag_name": ")[0-9.]*' - ) + version=$( command curl -sSf "$latest_release_uri" | + command grep -Eo "tag_name\": .*" | + command grep -Eo "[0-9.]*" ) if [ ! "$version" ]; then exit 1; fi else version="${1}" @@ -27,7 +26,7 @@ fi tar_file="$spicetify_install/${version}.zip" -echo "DOWNLOADING $download_uri" +echo "DOWNLOADING v$version $download_uri" curl --fail --location --progress-bar --output "$tar_file" "$download_uri" cd "$spicetify_install"