FIX made bash script compatible with defunct MacOs

This commit is contained in:
Julien Maille 2021-06-15 08:34:37 +02:00
parent 7db5024fc6
commit 3e7578e3a1
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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"