don't continue and try to set permissions on a symlink - that'll be covered by something else in this package, or is outside our scope and part of the O/S or another package

This commit is contained in:
David Goodwin 2016-06-21 13:33:34 +01:00
parent e5be8eac40
commit d04b3e44fa

View file

@ -181,6 +181,7 @@ class Packager
}
if (is_link($source)) {
symlink(readlink($source), $dest);
return; // don't set perms on symlink targets
} else {
if(!copy($source, $dest)) {
echo "Error: failed to copy: $source -> $dest \m";