newest version of dotfiles
This commit is contained in:
parent
1aec940d37
commit
80ff719697
1 changed files with 2 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)"
|
|
||||||
localVersion="$(oh-my-posh --version)"
|
|
||||||
tmpFile="$(mktemp -u)"
|
tmpFile="$(mktemp -u)"
|
||||||
|
|
||||||
test "$newestVersion" != "$localVersion" && {
|
curl -so "$tmpFile" https://ohmyposh.dev/install.sh
|
||||||
curl -so "$tmpFile" https://ohmyposh.dev/install.sh
|
bash "$tmpFile" -d "$HOME"/.local/bin
|
||||||
bash "$tmpFile" -d "$HOME"/.local/bin
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue