Skip to content

Commit

Permalink
fix variable reference in bin.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Sep 12, 2024
1 parent 33ca055 commit 7ca1e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dorian/bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def command_commit
def command_replace
from, to = arguments

each(stdin_files + stdin_arguments + self.files) do |file|
each(stdin_files + stdin_arguments + files) do |file|
next if File.directory?(file)

File.write(file, File.read(file).gsub(from, to))
Expand Down

0 comments on commit 7ca1e9f

Please sign in to comment.