Skip to content
koalaman edited this page Jan 14, 2018 · 1 revision

This cp has no destination. Check the arguments.

Problematic code:

cp "$file $dir"

Correct code:

cp "$file" "$dir"

Rationale:

ShellCheck found a cp command with a single parameter. This may be because the source and destination was accidentally merged into a single argument, or because the line was broken in an invalid way.

Fix the cp statement by correctly specifying both source and destination.

Exceptions:

None

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally
You can’t perform that action at this time.