Skip to content

Commit

Permalink
Update install-release.sh
Browse files Browse the repository at this point in the history
Fix to extract the latest install-local script before trying to run it when it does not yet exist
  • Loading branch information
Louisvdw committed May 6, 2023
1 parent e762832 commit 2184aa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/dbus-serialbattery/install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# download latest release
curl -s https://api.github.com/repos/Louisvdw/dbus-serialbattery/releases/latest | grep "browser_download_url.*gz" | cut -d : -f 2,3 | tr -d \" | wget -O venus-data.tar.gz -qi -
# extract the latest install-local script to run
tar -zxf ./venus-data.tar.gz -C /data etc/dbus-serialbattery/install-local.sh

# extract and install driver
sh /data/etc/dbus-serialbattery/install-local.sh

0 comments on commit 2184aa6

Please sign in to comment.