File tree 1 file changed +32
-17
lines changed
1 file changed +32
-17
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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}
You can’t perform that action at this time.
0 commit comments