bugfix(yq): update install.sh for new package format
authorliudonghua <liudonghua123@gmail.com>
Wed, 17 Nov 2021 05:14:25 +0000 (13:14 +0800)
committerAJ ONeal <aj@therootcompany.com>
Sun, 21 Nov 2021 03:22:27 +0000 (03:22 +0000)
yq/install.sh

index 4d3ad85e52b24844fc489bdd59cd30219d257d57..4cb7c078682fdedbea1969b137e09b80ff136b87 100644 (file)
 
     pkg_install() {
         mkdir -p "$(dirname $pkg_src_cmd)"
-        mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
+        # The downloaded file yq_linux_amd64.tar.gz which contains: ./yq_linux_amd64, yq.1, install-man-page.sh now.
+        mv ./"$pkg_cmd_name"_* "$pkg_src_cmd"
+        # Todo: need root permission to install man doc
+        # bash ./install-man-page.sh
         chmod a+x "$pkg_src_cmd"
     }