Skip to content

Commit 09f92e7

Browse files
mwjones-awsphilstrong
authored andcommitted
Fix ubuntu 20.04 install, update bug
Prior to this change, running the install and update scripts on an Ubuntu 20.04 instance failed unless the output was directed to a file. This change makes them work without that workaround.
1 parent 30f233f commit 09f92e7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

bin/install

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ class Proxy
1414
@targets = targets
1515
end
1616

17+
def path
18+
@targets.map do |target|
19+
if target.respond_to?(:path)
20+
target.__send__(:path)
21+
else
22+
# default to to_s since it's just used as a label for log statements.
23+
target.__send__(:to_s)
24+
end
25+
end
26+
end
27+
1728
protected
1829

1930
def method_missing(name, *args, &block)

bin/update

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ class Proxy
1414
@targets = targets
1515
end
1616

17+
def path
18+
@targets.map do |target|
19+
if target.respond_to?(:path)
20+
target.__send__(:path)
21+
else
22+
# default to to_s since it's just used as a label for log statements.
23+
target.__send__(:to_s)
24+
end
25+
end
26+
end
27+
1728
protected
1829

1930
def method_missing(name, *args, &block)

0 commit comments

Comments
 (0)