added update wrestic

This commit is contained in:
2024-02-28 23:03:05 -06:00
parent 5d203d80b5
commit 663eb5985f
2 changed files with 9 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
#!/bin/bash
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
if [[ -f /usr/local/bin/wrestic ]]
then
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
sudo chown akanealw:akanealw /usr/local/bin/wrestic
fi