local($destination) = $ARGV[0];
local($source) = ".";
if ($#ARGV > 0) {
- # get the location they provided.
- $source = $ARGV[1];
+ # use both the locations they provided.
+ $source = $ARGV[0];
+ $destination = $ARGV[1];
}
# make the names a little more manipulable.
&diff_dirs($dest, $src);
} else {
print "$break_line\n";
- print "Source exists at \"$src\", but target does not.\n";
+ print "Source directory has \"$src\", but target does not.\n";
}
# iterate through the directory.