Skip to content

Commit

Permalink
Merge pull request #78 from Mic92/newlines
Browse files Browse the repository at this point in the history
write trailing newline to gemset.nix
  • Loading branch information
Mic92 authored Jan 22, 2021
2 parents 5313a04 + 02ca7a6 commit 692e9b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bundix/commandline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def save_gemset(gemset)
tempfile = Tempfile.new('gemset.nix', encoding: 'UTF-8')
begin
tempfile.write(object2nix(gemset))
tempfile.write("\n")
tempfile.flush
FileUtils.cp(tempfile.path, options[:gemset])
FileUtils.chmod(0644, options[:gemset])
Expand Down

0 comments on commit 692e9b7

Please sign in to comment.