updated oh-my-posh script because --version is no longer valid

This commit is contained in:
Nikolas Weger 2024-11-06 11:51:59 +01:00
parent 2eb1adeed6
commit 01a037cdcc

View file

@ -1,6 +1,6 @@
#!/bin/bash
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name')"
localVersion="v$(oh-my-posh --version)"
localVersion="v$(oh-my-posh version)"
tmpFile="$(mktemp -u)"
test "$newestVersion" != "$localVersion" && {