diff options
author | XZS | 2016-04-22 11:41:05 +0200 |
---|---|---|
committer | XZS | 2016-04-22 11:41:05 +0200 |
commit | 9d0d1b3647e8b6d2a3068a033131495121d335e4 (patch) | |
tree | d37c5d7185d55909a03d01bcf25992fbce9afce7 | |
parent | 14b98fa7afe04f4e688576709fed1fe18d0d6d67 (diff) | |
download | aur-9d0d1b3647e8b6d2a3068a033131495121d335e4.tar.gz |
exclude hidden filed in subdirectories
Despite the wild card * not coping hidden files, this does not exclude
such in subdirectories. A reliable method to exclude files by a pattern
like "starting with a dot" would be rsync. But to not pull it in as an
additional dependency, copy and find are preferred.
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,8 +76,8 @@ depends=(${pkgname%%-*}) package() { compose_dependencies prepare_target - install -d "$destdir/$id" - cp --no-preserve=ownership,mode -r * "$destdir/$id" + cp --no-preserve=ownership,mode -r . "$destdir/$id" + find "$destdir/$id" -mindepth 1 -name ".*" -exec rm -rf '{}' + } # Hidden from mksrcinfo in silly subfunction. |