File tree Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
* .tar.gz
2
+ install.sh
Original file line number Diff line number Diff line change @@ -26,13 +26,26 @@ echo 'run command: tar -zxvf ./mdtk_bin_VERSION.tar.gz'
26
26
~~~
27
27
28
28
## Install Guide
29
- [ !] Cannot install mdtk using mdtk.
30
29
31
30
~~~ bash task:install-guide:linux-amd64 -- Display command (amd64 arch)
32
31
echo ' run command: sudo cp ./sources/mdtk_bin/linux_amd64/mdtk /usr/local/bin/mdtk'
32
+ echo ' create script'
33
+ filename=install.sh
34
+ mdtk _install install-linux --all-task --script -- arch=amd64 > $filename
35
+ sudo chmod +x $filename
33
36
~~~
34
37
~~~ bash task:install-guide:linux-arm64 -- Display command (arm64 arch)
35
38
echo ' run command: sudo cp ./sources/mdtk_bin/linux_arm64/mdtk /usr/local/bin/mdtk'
39
+ echo ' create script'
40
+ filename=install.sh
41
+ mdtk _install install-linux --all-task --script -- arch=arm64 > $filename
42
+ sudo chmod +x $filename
43
+ ~~~
44
+
45
+ ~~~ bash task:_install:install-linux
46
+ # args> arch=(amd64|arm64)
47
+ echo " Install mdtk (os: linux, arch: $arch )"
48
+ sudo cp ./sources/mdtk_bin/linux_$arch /mdtk /usr/local/bin/mdtk
36
49
~~~
37
50
38
51
## Utils
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ echo "Hello $THIS World!"
18
18
echo hello mdtk! pwd:` pwd`
19
19
```
20
20
21
- ``` task::test2 mdtk test
21
+ ``` task::test2
22
22
#config> once
23
23
echo "hello mdtk! (config once)"
24
24
```
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ func getEmbedDescTexts(tds taskset.TaskDataSet) taskset.TaskDataSet {
32
32
for i , task := range tds .Data {
33
33
desc := task .Code .GetEmbedDescText ()
34
34
if len (tds .Data [i ].Description ) == 1 && tds .Data [i ].Description [0 ] == "" {
35
- tds .Data [i ].Description = desc
35
+ if len (desc ) != 0 {
36
+ tds .Data [i ].Description = desc
37
+ } else {
38
+ tds .Data [i ].Description = []string {"----" }
39
+ }
36
40
} else {
37
41
tds .Data [i ].Description = append (tds .Data [i ].Description , desc ... )
38
42
}
You can’t perform that action at this time.
0 commit comments