fix adding text error occur on sometimes that will overwrite the whole file
This commit is contained in:
parent
c4fdcd7b06
commit
8b05282dbe
|
@ -76,8 +76,8 @@ all_template.each do |folder|
|
||||||
check_texts.each do |check_text|
|
check_texts.each do |check_text|
|
||||||
if !texts.include?(check_text)
|
if !texts.include?(check_text)
|
||||||
puts "editing #{folder}assets/stylesheets/template/base/_variables.scss"
|
puts "editing #{folder}assets/stylesheets/template/base/_variables.scss"
|
||||||
File.open(filename, 'a') do |file|
|
File.open(filename, 'w') do |file|
|
||||||
file.puts check_text
|
file.write(texts + check_text)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue