chore(style): convert blocks into functions (see #325)
[webi-installers/.git] / zoxide / install.sh
index 0c0c3cded34a4d219aeca6432cc1b58ec8b1504b..c9383b68f9001e1a1a3bab666048e4d1c2ab5732 100644 (file)
@@ -23,8 +23,8 @@ function __init_zoxide() {
         # mkdir -p "~/.local/opt/zoxide-v0.99.9/bin"
         mkdir -p "$(dirname "$pkg_src_cmd")"
 
-        # mv ./zoxide-*/zoxide "~/.local/opt/zoxide-v0.99.9/bin/zoxide"
-        mv ./zoxide-*/zoxide "$pkg_src_cmd"
+        # mv ./zoxide "~/.local/opt/zoxide-v0.99.9/bin/zoxide"
+        mv ./zoxide "$pkg_src_cmd"
     }
 
     # pkg_get_current_version is recommended, but (soon) not required
@@ -33,7 +33,7 @@ function __init_zoxide() {
         #       zoxide v0.5.0-31-g8452961
         # This trims it down to just the version number:
         #       0.5.0
-        zoxide --version 2>/dev/null | head -n 1 | cut -d '-' -f 1 | cut -b '9-'
+        zoxide --version 2> /dev/null | head -n 1 | cut -d '-' -f 1 | cut -b '9-'
     }
 
     # shellcheck disable=SC2016