For my classes we have all of our homeworks and assignments in a read only folder so I want to copy all those files (they aren't very big) to my personal folder on ssh login. I so far have been able to get the script to copy the files sometimes, but other times (always if I'm running it again to update my files), it puts everything into another directory of the same name but with a ? at the end. I stuck a --verbose and it says stuff like
`/homes/USERNAME/PUBLIC_FOLDER/project_descriptions' -> `/homes/USERNAME/PRIVATE_FOLDER/publicCP\r/project_descriptions'
I have no idea why it's adding a \r to things. The only directory that has no files in it is "projects" and that one copies over just fine every time. I've tried -r, -R, -rf, and -RF to no avail. Worst part is that I can't even use the files in this second publicCP directory because WinSCP (which I use to open pdf's in chrome) says
System Error. Code: 123. The filename, directory name, or volume label syntax is incorrect
which I guess is expected considering it shows both publicCP's as the exact same name. I'm at a complete loss for this, google is no help because it doesn't recognize punctuation and of course "-r" tells it to not search anything with "r".
I've also tried cd'ing into the private folder and copying everything sans full path but that didn't work either.