From 84ca18c3cf4b046a6b77855662c6a2ca6349cca4 Mon Sep 17 00:00:00 2001 From: nickcdon Date: Wed, 25 Dec 2024 11:17:13 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E8=B0=83=E6=95=B4doc=E5=90=8C?= =?UTF-8?q?=E6=AD=A5images=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/sync_images.sh | 49 ++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/doc/sync_images.sh b/doc/sync_images.sh index b868bc890..3b24dcbcd 100644 --- a/doc/sync_images.sh +++ b/doc/sync_images.sh @@ -1,19 +1,34 @@ #!/bin/bash -url=${LIB_GITHUB_URL:-"https://github.com/TCATools/tca_lib/releases/download/v20241015.1/tca_lib-v1.8.zip"} - -filename=$(basename "$url") -dirname=${filename%.*} - -lib_image_path="${dirname}/tca_lib/doc/images" -image_path="images" - -if [[ ! -d $image_path ]]; then - if [[ ! -d $lib_image_path ]]; then - if [[ ! -f $filename ]]; then - wget $url - fi - unzip $filename -d $dirname - fi - cp -r $lib_image_path $image_path -fi +# url=${LIB_GITHUB_URL} + +# filename=$(basename "$url") +# dirname=${filename%.*} + +# lib_image_path="${dirname}/tca_lib/doc/images" +# image_path="images" + +# if [[ ! -d $image_path ]]; then +# if [[ ! -d $lib_image_path ]]; then +# if [[ ! -f $filename ]]; then +# wget $url +# fi +# unzip $filename -d $dirname +# fi +# cp -r $lib_image_path $image_path +# fi + +# 当前 +CURRENT_PATH=$( + cd "$(dirname "${BASH_SOURCE[0]}")" + pwd +) + +# 根目录 +ROOT_PATH=$(dirname "${CURRENT_PATH}") + +cd ${ROOT_PATH} + +bash "${ROOT_PATH}"/scripts/base/install_bin.sh + +cd ${CURRENT_PATH}