feature: add test (install almost every package)
[webi-installers/.git] / curlie / install.sh
index a4169918c690cd144f0505596b5f84ad5efe1ae6..b5ccebf869440c176a8771847ede57c16fd95daf 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_curlie() {
     set -e
     set -u
 
     WEBI_SINGLE=true
 
     pkg_get_current_version() {
-      # 'curlie --version' has output in this format:
-      #       curlie 0.15.4
-      # This trims it down to just the version number:
-      #       0.15.4
-      echo $(curlie --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+        # 'curlie --version' has output in this format:
+        #       TODO
+        # This trims it down to just the version number:
+        #       TODO
+        #echo $(curlie --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+        # See https://github.com/rs/curlie/issues/22
+        echo "0.0.0"
     }
 
     pkg_install() {
         # $HOME/.local/xbin
         mkdir -p "$pkg_src_bin"
 
-        # mv ./curlie* "$HOME/.local/opt/curlie-v0.15.4/bin/curlie"
+        # mv ./curlie* "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
         mv ./curlie* "$pkg_src_cmd"
 
-        # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+        # chmod a+x "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
         chmod a+x "$pkg_src_cmd"
     }
 }
+
+__init_curlie