handbrake.sh 493 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. echo "Update :"
  3. sudo apt install flatpak -y
  4. echo "Install pack:"
  5. sudo apt install gnome-software-plugin-flatpak -y
  6. sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  7. sudo flatpak install flathub fr.handbrake.ghb
  8. echo "Start link:"
  9. if [ ! -f /usr/local/bin/handbrake.sh ]
  10. then
  11. cat <<'EOF'>> /tmp/handbrake.sh
  12. #!/bin/bash
  13. flatpak run fr.handbrake.ghb
  14. EOF
  15. chmod +x /tmp/handbrake.sh
  16. sudo cp /tmp/handbrake.sh /usr/local/bin/
  17. fi
  18. echo "Done"