We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aba5b02 commit 7b01e2fCopy full SHA for 7b01e2f
lib/travis/vcs/git/netrc.rb
@@ -23,12 +23,7 @@ def delete
23
)
24
else
25
# Linux/macOS
26
- # sh.raw "sed -i '/^machine #{host}/,/^$/ { /login/d; /password/d; }' #{file_path}"
27
- sh.raw %(
28
- sed '/^machine #{host}/,/^$/ { /login/d; /password/d; }' #{file_path} > #{file_path}.tmp &&
29
- mv #{file_path}.tmp #{file_path} ||
30
- rm -f #{file_path}
31
- )
+ sh.raw "sed -i '/^machine #{host}/,/^$/ { /login/d; /password/d; }' #{file_path}"
32
end
33
34
0 commit comments