mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Change deprecated File.exists?/Dir.exists? to File.exist?/Dir.exist? (#6893)
* Change `File.exists?` to `File.exist?` * Change `Dir.exists?` to `Dir.exist?`
This commit is contained in:
@@ -29,7 +29,7 @@ class Xdg_base < Package
|
||||
end
|
||||
if File.directory?("#{HOME}/.local") && !File.symlink?("#{HOME}/.local") && !FileUtils.cp_r("#{HOME}/.local/.",
|
||||
"#{CREW_PREFIX}/.config/")
|
||||
# FileUtils.mkdir_p("#{CREW_PREFIX}/.config") unless Dir.exists? "#{CREW_PREFIX}/.config"
|
||||
# FileUtils.mkdir_p("#{CREW_PREFIX}/.config") unless Dir.exist? "#{CREW_PREFIX}/.config"
|
||||
FileUtils.rm_rf("#{HOME}/.local")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user