mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-07 08:40:44 +00:00
FIX made bash script compatible with defunct MacOs
This commit is contained in:
parent
7db5024fc6
commit
3e7578e3a1
2 changed files with 5 additions and 6 deletions
|
|
@ -81,7 +81,7 @@ if ($PSVersionTable.PSVersion.Major -gt $PSMinVersion) {
|
||||||
Write-Done
|
Write-Done
|
||||||
|
|
||||||
# Installing.
|
# Installing.
|
||||||
Write-Part "INSTALLING ";
|
Write-Part "INSTALLING";
|
||||||
cd $sp_dot_dir
|
cd $sp_dot_dir
|
||||||
Copy-Item dribbblish.js ..\..\Extensions
|
Copy-Item dribbblish.js ..\..\Extensions
|
||||||
Copy-Item dribbblish-dynamic.js ..\..\Extensions
|
Copy-Item dribbblish-dynamic.js ..\..\Extensions
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,9 @@ set -e
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
latest_release_uri="https://api.github.com/repos/JulienMaille/dribbblish-dynamic-theme/releases/latest"
|
latest_release_uri="https://api.github.com/repos/JulienMaille/dribbblish-dynamic-theme/releases/latest"
|
||||||
echo "DOWNLOADING $latest_release_uri"
|
echo "DOWNLOADING $latest_release_uri"
|
||||||
version=$(
|
version=$( command curl -sSf "$latest_release_uri" |
|
||||||
command curl -sSf "$latest_release_uri" |
|
command grep -Eo "tag_name\": .*" |
|
||||||
command grep -Po '(?<="tag_name": ")[0-9.]*'
|
command grep -Eo "[0-9.]*" )
|
||||||
)
|
|
||||||
if [ ! "$version" ]; then exit 1; fi
|
if [ ! "$version" ]; then exit 1; fi
|
||||||
else
|
else
|
||||||
version="${1}"
|
version="${1}"
|
||||||
|
|
@ -27,7 +26,7 @@ fi
|
||||||
|
|
||||||
tar_file="$spicetify_install/${version}.zip"
|
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"
|
curl --fail --location --progress-bar --output "$tar_file" "$download_uri"
|
||||||
cd "$spicetify_install"
|
cd "$spicetify_install"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue