Skip to content

Commit c6ca285

Browse files
authored
Merge pull request #1204 from nickcdon/main
🔨 调整doc同步images脚本
2 parents 1820d93 + 84ca18c commit c6ca285

File tree

1 file changed

+32
-17
lines changed

1 file changed

+32
-17
lines changed

doc/sync_images.sh

+32-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
#!/bin/bash
22

3-
url=${LIB_GITHUB_URL:-"https://github.com/TCATools/tca_lib/releases/download/v20241015.1/tca_lib-v1.8.zip"}
4-
5-
filename=$(basename "$url")
6-
dirname=${filename%.*}
7-
8-
lib_image_path="${dirname}/tca_lib/doc/images"
9-
image_path="images"
10-
11-
if [[ ! -d $image_path ]]; then
12-
if [[ ! -d $lib_image_path ]]; then
13-
if [[ ! -f $filename ]]; then
14-
wget $url
15-
fi
16-
unzip $filename -d $dirname
17-
fi
18-
cp -r $lib_image_path $image_path
19-
fi
3+
# url=${LIB_GITHUB_URL}
4+
5+
# filename=$(basename "$url")
6+
# dirname=${filename%.*}
7+
8+
# lib_image_path="${dirname}/tca_lib/doc/images"
9+
# image_path="images"
10+
11+
# if [[ ! -d $image_path ]]; then
12+
# if [[ ! -d $lib_image_path ]]; then
13+
# if [[ ! -f $filename ]]; then
14+
# wget $url
15+
# fi
16+
# unzip $filename -d $dirname
17+
# fi
18+
# cp -r $lib_image_path $image_path
19+
# fi
20+
21+
# 当前
22+
CURRENT_PATH=$(
23+
cd "$(dirname "${BASH_SOURCE[0]}")"
24+
pwd
25+
)
26+
27+
# 根目录
28+
ROOT_PATH=$(dirname "${CURRENT_PATH}")
29+
30+
cd ${ROOT_PATH}
31+
32+
bash "${ROOT_PATH}"/scripts/base/install_bin.sh
33+
34+
cd ${CURRENT_PATH}

0 commit comments

Comments
 (0)