3 ms·
Clever. Stopping to think about this, I think setting REMOTE_SHELL="" when it doesn't want to get used, and then inserting it every time, instead of using
by fragmede 3y ago
Clever. Stopping to think about this, I think setting
REMOTE_SHELL=""
when it doesn't want to get used, and then inserting it every time, instead of using the conditional
rsync ... ${REMOTE_SHELL} ...
should also work. If it's empty, then it won't add anything, but if there's something then it'll get passed in.