updateLitexl.sh 499 B

123456789101112
  1. #!/bin/bash
  2. appimage=lite-xl/lite-xl
  3. cd || return
  4. mkdir -p ~/Applications
  5. cd ~/Applications || return
  6. #curl -O -L "$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | jq -r ".assets[] | select(.name | test(\"AppImage\")) | .browser_download_url")"
  7. DOWNLOAD_URL=$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | grep browser_download_url | grep "LiteXL-x86_64.AppImage" | head -n 1 | cut -d '"' -f 4)
  8. curl -OL "$DOWNLOAD_URL"
  9. chmod +x ./*.AppImage
  10. cd - || return