rebuild 0.3.0.pre2 → 0.3.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rebuild/homebrew.rb +1 -1
- data/lib/rebuild/license.rb +1 -1
- data/lib/rebuild/script.rb +2 -2
- data/lib/rebuild/version.rb +1 -1
- data/script/homebrew.exp +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57561e60786e642b55ea0dac2797b26928f43625
|
4
|
+
data.tar.gz: 1a221c7aedb3641e3fa608f9fc00fc5b3a2cb2fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a979572424abc1a4697a212a04c8763bccbc7f8a8da84cee3d4192b30c41a2b488fd23b0bc9933bb5beaf810287320a9437ba2fd515def046584af9f8016952d
|
7
|
+
data.tar.gz: 7f5d2d6568af9e5e4731e7c0e7bd9e8bb6881a168061d7ac2458b77cfd1a4efd7f74cc592f408299e01444e7e121070afcbed9f8c14bd948539ffdd9b4270f69
|
data/lib/rebuild/homebrew.rb
CHANGED
data/lib/rebuild/license.rb
CHANGED
data/lib/rebuild/script.rb
CHANGED
@@ -8,9 +8,9 @@ module Rebuild
|
|
8
8
|
`sudo osascript #{script_path}`
|
9
9
|
end
|
10
10
|
|
11
|
-
def execute_exp(name)
|
11
|
+
def execute_exp(name, sudo: false)
|
12
12
|
script_path = File.join(script_dir, "#{name}.exp")
|
13
|
-
|
13
|
+
`#{'sudo' if sudo} expect -f #{script_path}`
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
data/lib/rebuild/version.rb
CHANGED
data/script/homebrew.exp
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env expect -f
|
2
2
|
|
3
3
|
set timeout -1
|
4
|
-
spawn ruby -e "
|
4
|
+
spawn ruby -e "\"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
|
5
5
|
|
6
6
|
expect {
|
7
7
|
"Press RETURN to continue or any other key to abort"
|