@@ -11,14 +11,14 @@ function should-use-deb() {
11
11
DISTRO=$1 ARCH=$2 OS=linux run " $SCRIPT " --dry-run
12
12
[ " $status " -eq 0 ]
13
13
[ " ${lines[1]} " = " Installing v$VERSION of the $2 deb package from GitHub." ]
14
- [ " ${lines[-5 ]} " = " deb package has been installed." ]
14
+ [ " ${lines[-6 ]} " = " deb package has been installed." ]
15
15
}
16
16
17
17
function should-use-rpm() {
18
18
DISTRO=$1 ARCH=$2 OS=linux run " $SCRIPT " --dry-run
19
19
[ " $status " -eq 0 ]
20
20
[ " ${lines[1]} " = " Installing v$VERSION of the $2 rpm package from GitHub." ]
21
- [ " ${lines[-5 ]} " = " rpm package has been installed." ]
21
+ [ " ${lines[-6 ]} " = " rpm package has been installed." ]
22
22
}
23
23
24
24
function should-fallback-npm() {
@@ -27,21 +27,21 @@ function should-fallback-npm() {
27
27
[ " ${lines[1]} " = " No standalone releases for $2 ." ]
28
28
[ " ${lines[2]} " = " Falling back to installation from npm." ]
29
29
[ " ${lines[3]} " = " Installing latest from npm." ]
30
- [ " ${lines[-5 ]} " = " npm package has been installed." ]
30
+ [ " ${lines[-6 ]} " = " npm package has been installed." ]
31
31
}
32
32
33
33
function should-use-npm() {
34
34
YARN_PATH=true DISTRO=$1 ARCH=$2 OS=linux run " $SCRIPT " --dry-run
35
35
[ " $status " -eq 0 ]
36
36
[ " ${lines[1]} " = " Installing latest from npm." ]
37
- [ " ${lines[-5 ]} " = " npm package has been installed." ]
37
+ [ " ${lines[-6 ]} " = " npm package has been installed." ]
38
38
}
39
39
40
40
function should-use-aur() {
41
41
DISTRO=$1 ARCH=$2 OS=linux run " $SCRIPT " --dry-run
42
42
[ " $status " -eq 0 ]
43
43
[ " ${lines[1]} " = " Installing latest from the AUR." ]
44
- [ " ${lines[-5 ]} " = " AUR package has been installed." ]
44
+ [ " ${lines[-6 ]} " = " AUR package has been installed." ]
45
45
}
46
46
47
47
function should-fallback-npm-brew() {
@@ -52,21 +52,21 @@ function should-fallback-npm-brew() {
52
52
[ " ${lines[3]} " = " No standalone releases for $1 ." ]
53
53
[ " ${lines[4]} " = " Falling back to installation from npm." ]
54
54
[ " ${lines[5]} " = " Installing latest from npm." ]
55
- [ " ${lines[-5 ]} " = " npm package has been installed." ]
55
+ [ " ${lines[-6 ]} " = " npm package has been installed." ]
56
56
}
57
57
58
58
function should-use-brew() {
59
59
BREW_PATH=true OS=macos ARCH=$1 run " $SCRIPT " --dry-run
60
60
[ " $status " -eq 0 ]
61
61
[ " ${lines[1]} " = " Installing latest from Homebrew." ]
62
- [ " ${lines[-3 ]} " = " Brew release has been installed." ]
62
+ [ " ${lines[-4 ]} " = " Brew release has been installed." ]
63
63
}
64
64
65
65
function should-use-standalone() {
66
66
DISTRO=$1 ARCH=$2 OS=$3 run " $SCRIPT " --method standalone --dry-run
67
67
[ " $status " -eq 0 ]
68
68
[ " ${lines[1]} " = " Installing v$VERSION of the $2 release from GitHub." ]
69
- [[ " ${lines[-5 ]} " = " Standalone release has been installed" * ]]
69
+ [[ " ${lines[-6 ]} " = " Standalone release has been installed" * ]]
70
70
}
71
71
72
72
@test " $SCRIPT_NAME : usage with --help" {
@@ -141,7 +141,7 @@ function should-use-standalone() {
141
141
[ " ${lines[1]} " = " Homebrew not installed." ]
142
142
[ " ${lines[2]} " = " Falling back to standalone installation." ]
143
143
[ " ${lines[3]} " = " Installing v$VERSION of the amd64 release from GitHub." ]
144
- [[ " ${lines[-5 ]} " = " Standalone release has been installed" * ]]
144
+ [[ " ${lines[-6 ]} " = " Standalone release has been installed" * ]]
145
145
}
146
146
@test " $SCRIPT_NAME : macos i386 (no brew)" {
147
147
should-fallback-npm-brew " i386"
0 commit comments