Skip to content

Commit

Permalink
write trailing newline to gemset.nix
Browse files Browse the repository at this point in the history
editorconfig-check in nixpkgs wants newline at the end of a file
  • Loading branch information
Mic92 committed Jan 7, 2021
1 parent 5313a04 commit 02ca7a6
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 02ca7a6

Please sign in to comment.