bugfix(misc): fix kind, gprox, myip, pandoc
authorAJ ONeal <aj@therootcompany.com>
Sun, 21 Nov 2021 12:26:23 +0000 (12:26 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sun, 21 Nov 2021 12:35:05 +0000 (12:35 +0000)
gprox/install.sh
kind/install.sh
myip/myip.sh
pandoc/install.sh

index 103216541fb38e890c78eb459d43d2542239e0b1..196c2405766b9fcf658d392f6b2dac9c53240272 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
+set -e
+set -u
 
 function __init_gprox() {
 
 function __init_gprox() {
-    set -e
-    set -u
 
     ##################
     # Install gprox #
 
     ##################
     # Install gprox #
@@ -18,13 +18,17 @@ function __init_gprox() {
     pkg_src_dir="$HOME/.local/opt/gprox-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
     pkg_src_dir="$HOME/.local/opt/gprox-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
+    WEBI_SINGLE=true
+
     # pkg_get_current_version is recommended, but (soon) not required
     pkg_get_current_version() {
         # 'gprox --version' has output in this format:
         #       gprox 0.99.9 (rev abcdef0123)
         # This trims it down to just the version number:
         #       0.99.9
     # pkg_get_current_version is recommended, but (soon) not required
     pkg_get_current_version() {
         # 'gprox --version' has output in this format:
         #       gprox 0.99.9 (rev abcdef0123)
         # This trims it down to just the version number:
         #       0.99.9
-        echo $(gprox --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
+        gprox --version 2> /dev/null |
+            head -n 1 |
+            cut -d ' ' -f 2
     }
 }
 
     }
 }
 
index b3e1ed74ac71bf2bfb91f2c1b12d3af59a3ba5ab..245869b6f44c98ba49bd5076872dd90d1453bdb4 100644 (file)
@@ -17,13 +17,12 @@ function __init_kind() {
     pkg_src_dir="$HOME/.local/opt/kind-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
     pkg_src_dir="$HOME/.local/opt/kind-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
-    pkg_install() {
-        mkdir -p "$(dirname $pkg_src_cmd)"
-        mv ./kind-*/kind "$pkg_src_cmd"
-    }
+    WEBI_SINGLE=true
 
     pkg_get_current_version() {
 
     pkg_get_current_version() {
-        echo $(kind --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
+        kind --version 2> /dev/null |
+            head -n 1 |
+            cut -d ' ' -f 2
     }
 
 }
     }
 
 }
index cc60be770e618fddc6e7cd4cfb40d12b43c92e0f..94cdca79b260f470fdee939483ee5d0aaf303c60 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
 #!/bin/bash
 
-function __show_my_ip {
+function __show_my_ip() {
     set -u
     set -e
 
     set -u
     set -e
 
index 18e9625ab18014817637a72ca65ff3b742f0bb84..2ab940b55e97a845b4d74be16838316a5cec4136 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/bash
 #!/bin/bash
-function __init_pandoc{
+
+function __init_pandoc() {
     set -e
     set -u
 
     set -e
     set -u