Added cheatsheet to readme
[webi-installers/.git] / LF / install.sh
index 9fb5696d5acaf68d3471d87b4af0f8838ae3123e..674bbcb7711553659c7ffd596d294854a9369c44 100644 (file)
@@ -7,8 +7,7 @@ function __init_lf() {
     ##################
     # Install lf #
     ##################
-
-    # Every package should define these 6 variables
+    
     pkg_cmd_name="lf"
 
     pkg_dst_cmd="$HOME/.local/bin/lf"
@@ -18,21 +17,12 @@ function __init_lf() {
     pkg_src_dir="$HOME/.local/opt/lf-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
-    # pkg_install must be defined by every package
     pkg_install() {
-        # ~/.local/opt/lf-v0.99.9/bin
         mkdir -p "$(dirname $pkg_src_cmd)"
-
-        # mv ./lf-*/lf ~/.local/opt/lf-v0.99.9/bin/lf
         mv ./lf-*/lf "$pkg_src_cmd"
     }
 
-    # pkg_get_current_version is recommended, but (soon) not required
     pkg_get_current_version() {
-        # 'lf --version' has output in this format:
-        #       lf 0.99.9 (rev abcdef0123)
-        # This trims it down to just the version number:
-        #       0.99.9
         echo $(lf --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
     }