wareck 3 years ago
parent
commit
89cb34b150
1 changed files with 15 additions and 0 deletions
  1. 15 0
      options/handbrake.sh

+ 15 - 0
options/handbrake.sh

@@ -1,5 +1,20 @@
 #!/bin/bash
+echo "Update :"
 sudo apt install flatpak -y
+echo "Install pack:"
 sudo apt install gnome-software-plugin-flatpak -y
 sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 sudo flatpak install flathub fr.handbrake.ghb
+
+echo "Start link:"
+if [ ! -f /usr/local/bin/handbrake.sh ]
+then
+cat <<'EOF'>> /tmp/handbrake.sh
+#!/bin/bash
+flatpak run fr.handbrake.ghb
+EOF
+chmod +x /tmp/handbrake.sh
+sudo cp /tmp/handbrake.sh /usr/local/bin/
+fi
+
+echo "Done"