Skip to content

Commit

Permalink
🐛 download x64
Browse files Browse the repository at this point in the history
WIP : download same build
  • Loading branch information
pad92 committed Oct 26, 2018
1 parent 1aa0811 commit e52b0af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh/functions/rambox.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ rambox_update(){
rambox_CURRENT=$(rpm -aq | grep -i rambox | cut -d'-' -f2)
rambox_LATEST=$(curl -Ls https://api.github.com/repos/saenzramiro/rambox/releases/latest)
rambox_LATEST_VERSION=$(echo -e ${rambox_LATEST} | grep -m 1 '"name"' | cut -d '"' -f 4)
rambox_RPM=$(echo -e ${rambox_LATEST} | grep -E 'browser_download_url(.*)\.rpm' | cut -d '"' -f 4 | grep -v ia32)
rambox_DEB=$(echo -e ${rambox_LATEST} | grep -E 'browser_download_url(.*)\.deb' | cut -d '"' -f 4 | grep -v ia32)
rambox_RPM=$(echo -e ${rambox_LATEST} | grep -E 'browser_download_url(.*)\.rpm' | cut -d '"' -f 4 | grep x86_64)
rambox_DEB=$(echo -e ${rambox_LATEST} | grep -E 'browser_download_url(.*)\.deb' | cut -d '"' -f 4 | grep amd64)

if [ "${rambox_LATEST_VERSION}" != "${rambox_CURRENT}" ]; then
echo "upgrade rambox ${rambox_CURRENT} to ${rambox_LATEST_VERSION}"
Expand Down

0 comments on commit e52b0af

Please sign in to comment.