I’m using an NPM script
for building a project. I develop on macOS, but my production builds are run by
Jenkins on a Linux server.
The build script copies the contents of one directory to another. When I run it locally,
cp command copies the contents but not the directory itself,
which is what I want to happen.
However, when Jenkins creates a build the directory itself is copied. Here’s an example:
Weird! Fortunately the solution is very simple, just add a