File tree 2 files changed +3
-20
lines changed
2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function seal::walrus_cli::install() {
17
17
curl --retry 3 --retry-all-errors --retry-delay 3 \
18
18
-o " ${ROOT_DIR} /.sbin/walrus-cli" \
19
19
-sSfL " https://walrus-cli-1303613262.cos.ap-guangzhou.myqcloud.com/releases/latest/walrus-cli-${os} -${arch} "
20
-
20
+
21
21
chmod a+x " ${ROOT_DIR} /.sbin/walrus-cli"
22
22
}
23
23
@@ -31,13 +31,12 @@ function seal::walrus_cli::validate() {
31
31
if [[ -n " $( command -v $( seal::walrus_cli::bin) ) " ]]; then
32
32
if [[ " ${walrus_cli_version} " == " latest" ]]; then
33
33
local expected_md5sum
34
- expected_md5sum=$( curl --retry 3 --retry-all-errors --retry-delay 3 -IsSfL " https://walrus-cli-1303613262.cos.ap-guangzhou.myqcloud.com/releases/latest/walrus-cli-${os} -${arch} " | grep ETag | cut -d " " -f 2 | sed -e ' s/"//g' )
34
+ expected_md5sum=" $( curl --retry 3 --retry-all-errors --retry-delay 3 -IsSfL " https://walrus-cli-1303613262.cos.ap-guangzhou.myqcloud.com/releases/latest/walrus-cli-${os} -${arch} " | grep ETag | cut -d" " -f 2 | sed -e ' s/"//g' | sed -e ' s/\r//g ' ) "
35
35
local actual_md5sum
36
- actual_md5sum=$( md5sum " $( seal::walrus_cli::bin) " | cut -d " " -f 1)
36
+ actual_md5sum=" $( md5sum $( which $( seal::walrus_cli::bin) ) | cut -d" " -f 1) "
37
37
if [[ " ${expected_md5sum} " == " ${actual_md5sum} " ]]; then
38
38
return 0
39
39
fi
40
- return 0
41
40
elif [[ $( $( seal::walrus_cli::bin) --version 2> /dev/null | head -n 1 | cut -d " " -f 3 2>&1 ) == " ${walrus_cli_version} " ]]; then
42
41
return 0
43
42
fi
Original file line number Diff line number Diff line change @@ -8,22 +8,6 @@ components:
8
8
required :
9
9
- infrastructure
10
10
properties :
11
- context :
12
- title : Context
13
- type : object
14
- description : |
15
- Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.
16
- default : {}
17
- nullable : true
18
- additionalProperties :
19
- type : object
20
- x-walrus-ui :
21
- colSpan : 12
22
- x-walrus-ui :
23
- colSpan : 12
24
- group : Basic
25
- hidden : true
26
- order : 1
27
11
infrastructure :
28
12
title : Infrastructure
29
13
type : object
You can’t perform that action at this time.
0 commit comments