Skip to content

cp -n should not produce errors if file exists #67

@kirly-af

Description

@kirly-af
$> ls
fileA  fileB
$> shx cp -n fileA fileB
cp: dest file already exists: fileB
$> echo $?
130
$> cp -n fileA fileB # no output
$> echo $?
0 # no error

This is annoying when shx cp -n is used in a npm script as the script will then stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions