Skip to content

Commit 7b01e2f

Browse files
return sed -i
1 parent aba5b02 commit 7b01e2f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/travis/vcs/git/netrc.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ def delete
2323
)
2424
else
2525
# 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-
)
26+
sh.raw "sed -i '/^machine #{host}/,/^$/ { /login/d; /password/d; }' #{file_path}"
3227
end
3328
end
3429

0 commit comments

Comments
 (0)