Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- #title :
- #description :Start freetube appimage.
- # Search / browse / watch youtube on desktop.
- #author :lovelettersfromtheslum / a real noob
- #date :2024.on a certain day of a certain month
- #version :0.1
- #usage :Just run it.
- #notes :
- #
- #bash_version :GNU bash, 5.2.15(1)-release
- #dependencies :freetube, ( grep )
- #
- #////// PLACE //////////////////////////////////////////////////////////////////////
- place="$HOME/bin"
- #
- #////// GET THE LATEST WITH LS /////////////////////////////////////////////////////
- #
- # this command is under construction
- #
- latest_installed_ft=$(ls -1 "$place"|grep -i "^freetube.*.appimage$"|tail -1)
- #
- #////// DEFINE FUNCTION ////////////////////////////////////////////////////////////
- run_latest() {
- "$latest_installed_ft" & exit 0
- }
- #////// RUN IT /////////////////////////////////////////////////////////////////////
- #echo "$latest_installed_ft"|bash & exit 0
- run_latest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement