Source directory is determined like so:
SHOW=${PWD##*/}
[email protected]:"/mnt/bigfish/video/TV/${SHOW}/"
So it comes out something like:
[email protected]:/mnt/bigfish/video/TV/The Name Of the Show With Spaces/
Then trying to run rsync like so:
rsync -avz -e ssh "${SRC}" .
But it tells me that ""/mnt/bigfish/video/TV/The" is not a directory, ""/mnt/bigfish/video/TV/Name" is not a directory, etc, for however many space-delimited words are in the name of the source directory.
How can I rectify this egregiously annoying issue?
UPDATE I'm running this on OS 10.6, and I ended up string-replacing spaces with escaped spaces like so:
[email protected]:"/mnt/bigfish/video/TV/${SHOW// /\ }/"