mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Fix install script (#175)
This commit is contained in:
parent
e8d920030d
commit
a56d711a44
1 changed files with 2 additions and 2 deletions
|
|
@ -148,8 +148,8 @@ install_dnote() {
|
|||
|
||||
|
||||
# get the latest version
|
||||
resp=$(http_get "https://api.github.com/repos/$owner/$repo/tags")
|
||||
version=$(echo "$resp" | tr ',' '\n' | grep -m 1 "\"name\": \"cli" | cut -f4 -d'"')
|
||||
resp=$(http_get "https://api.github.com/repos/$owner/$repo/releases")
|
||||
version=$(echo "$resp" | tr ',' '\n' | grep -m 1 "\"tag_name\": \"cli" | cut -f4 -d'"')
|
||||
|
||||
if [ -z "$version" ]; then
|
||||
print_error "Error fetching latest version. Please try again."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue