Pattern: Use of mv
without destination
Issue: -
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 mv
statement by correctly specifying both source and destination.
Example of incorrect code:
mv "$file $dir"
Example of correct code:
mv "$file" "$dir"