install: keep_file must be a Pathname.

This commit is contained in:
Mike McQuaid 2019-09-18 09:40:18 +01:00
parent 878b79d456
commit 8d6ac3869c
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -25,7 +25,7 @@ module Homebrew
begin
FileUtils.mkdir_p(dir) unless dir.exist?
keep_file = "#{dir}/.keepme"
keep_file = dir/".keepme"
FileUtils.touch(keep_file) unless keep_file.exist?
rescue
nil