docker-phoenix-example icon indicating copy to clipboard operation
docker-phoenix-example copied to clipboard

Update run ci:test task

Open sundevilyang opened this issue 1 year ago • 1 comments

task error

./run ci:test
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory

The --no-clobber option is not available on all versions of cp. To avoid this error, you can replace the cp --no-clobber command with cp -n which should work on most systems.

use the -n option instead of --no-clobber. Note that 2>/dev/null || : has also been added after the cp command to ignore any error messages that might be produced.

sundevilyang avatar May 04 '23 09:05 sundevilyang