cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git] / bat / install.sh
index b9a60679190d21a840151057d820d5c8fa53ad4b..b6f812eae54acd528cc0d82a6a22fadf3ed68b17 100644 (file)
     WEBI_SINGLE=true
 
     pkg_get_current_version() {
-      # 'bat --version' has output in this format:
-      #       bat 0.15.4
-      # This trims it down to just the version number:
-      #       0.15.4
-      echo $(bat --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+        # 'bat --version' has output in this format:
+        #       bat 0.15.4
+        # This trims it down to just the version number:
+        #       0.15.4
+        echo $(bat --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
     }
 
     pkg_install() {
-        # $HOME/.local/xbin
+        # ~/.local/xbin
         mkdir -p "$pkg_src_bin"
 
-        # mv ./bat-*/bat "$HOME/.local/xbin/bat-v0.15.4"
+        # mv ./bat-*/bat ~/.local/opt/bat-v0.15.4/bin/bat
         mv ./bat-*/bat "$pkg_src_cmd"
 
-        # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+        # chmod a+x ~/.local/opt/bat-v0.15.4/bin/bat
         chmod a+x "$pkg_src_cmd"
     }
 }