Skip to content

Commit

Permalink
docs: note trailing slash on nfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 20, 2022
1 parent de254d5 commit b76b658
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/docs/customization/nfpm.md
Expand Up @@ -214,6 +214,11 @@ nfpms:
owner: notRoot
group: notRoot

# If `dst` ends with a `/`, it'll create the given path and copy the given
# `src` into it, the same way `cp` works with and without trailing `/`.
- src: ./foo/bar/*
dst: /usr/local/myapp/

# Using the type 'dir', empty directories can be created. When building
# RPMs, however, this type has another important purpose: Claiming
# ownership of that folder. This is important because when upgrading or
Expand Down

0 comments on commit b76b658

Please sign in to comment.