Implement @reitermarkus's comments
Leftover && and remove xattr "copy"
This commit is contained in:
parent
657d4eaee9
commit
ab62be5345
@ -70,8 +70,6 @@ module Hbc
|
|||||||
else
|
else
|
||||||
command.run("/bin/mv", args: [target, source], sudo: true)
|
command.run("/bin/mv", args: [target, source], sudo: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
add_altname_metadata(source, target.basename, command: command)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete(target, force: false, command: nil, **_)
|
def delete(target, force: false, command: nil, **_)
|
||||||
|
|||||||
@ -459,7 +459,7 @@ module Hbc
|
|||||||
|
|
||||||
# Homebrew-Cask metadata
|
# Homebrew-Cask metadata
|
||||||
if backup_metadata_path.respond_to?(:children) &&
|
if backup_metadata_path.respond_to?(:children) &&
|
||||||
backup_metadata_path.exist? &&
|
backup_metadata_path.exist?
|
||||||
backup_metadata_path.children.each do |subdir|
|
backup_metadata_path.children.each do |subdir|
|
||||||
unless PERSISTENT_METADATA_SUBDIRS.include?(subdir.basename)
|
unless PERSISTENT_METADATA_SUBDIRS.include?(subdir.basename)
|
||||||
gain_permissions_remove(subdir)
|
gain_permissions_remove(subdir)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user