Skip to content

Commit

Permalink
fix(installation): use REST API URL to download restic latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed May 24, 2023
1 parent 4d09c09 commit af24399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chezmoi/dot_local/bin/executable_install-autorestic.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fi

if ! command -v restic &>/dev/null; then
echo "Missing restic command. Installing restic..."
wget -qO - /~https://github.com/restic/restic/releases/latest |
wget -qO - https://api.github.com/repos/restic/restic/releases/latest |
grep "browser_download_url.*_${OS}_${ARCH}" |
cut -d : -f 2,3 |
tr -d \" |
Expand Down
2 changes: 1 addition & 1 deletion docs/install-autorestic
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fi

if ! command -v restic &>/dev/null; then
echo "Missing restic command. Installing restic..."
wget -qO - /~https://github.com/restic/restic/releases/latest |
wget -qO - https://api.github.com/repos/restic/restic/releases/latest |
grep "browser_download_url.*_${OS}_${ARCH}" |
cut -d : -f 2,3 |
tr -d \" |
Expand Down

0 comments on commit af24399

Please sign in to comment.