Advertisement
VghLaci

for_freetube_appimage.sh

Dec 22nd, 2024 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. #title           :
  4. #description     :Start freetube appimage.
  5. #                 Search / browse / watch youtube on desktop.
  6. #author          :lovelettersfromtheslum / a real noob
  7. #date            :2024.on a certain day of a certain month
  8. #version         :0.1
  9. #usage           :Just run it.
  10. #notes           :
  11. #
  12. #bash_version    :GNU bash, 5.2.15(1)-release
  13. #dependencies    :freetube, ( grep )
  14. #
  15. #////// PLACE //////////////////////////////////////////////////////////////////////
  16. place="$HOME/bin"
  17. #
  18. #////// GET THE LATEST WITH LS /////////////////////////////////////////////////////
  19. #
  20. #          this command is under construction
  21. #
  22. latest_installed_ft=$(ls -1 "$place"|grep -i "^freetube.*.appimage$"|tail -1)
  23. #
  24. #////// DEFINE FUNCTION ////////////////////////////////////////////////////////////
  25. run_latest() {
  26.     "$latest_installed_ft" & exit 0
  27. }
  28. #////// RUN IT /////////////////////////////////////////////////////////////////////
  29. #echo "$latest_installed_ft"|bash & exit 0
  30. run_latest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement