From dfe80a7c1b21fa7ab982473e69ebf5345253779a Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Thu, 14 Apr 2022 17:11:54 +0200 Subject: [PATCH] tempative fix for quoting --- printa4 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/printa4 b/printa4 index a93d50b..0a71337 100755 --- a/printa4 +++ b/printa4 @@ -15,16 +15,16 @@ _user="minnocci" main() { if $NO_CLI; then for f in "$@"; do - scp "$f" ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-"'$(basename "$f")'" - ssh -XY ${_user}@ssh1.dm.unipi.it okular /home/${_user}/printa4-"'$(basename "$f")'" --print - ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-"'$(basename "$f")'" + scp "$f" ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-"$(basename "$f")" + ssh -XY ${_user}@ssh1.dm.unipi.it okular /home/${_user}/printa4-"$(basename "$f")" --print + ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-"$(basename "$f")" done else options="$1"; shift for f in "$@"; do - scp "$f" ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-"'$(basename "$f")'" - ssh ${_user}@ssh1.dm.unipi.it lp $options /home/${_user}/printa4-"'$(basename "$f")'" - ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-"'$(basename "$f")'" + scp "$f" ${_user}@ssh1.dm.unipi.it:/home/${_user}/printa4-"$(basename "$f")" + ssh ${_user}@ssh1.dm.unipi.it lp $options /home/${_user}/printa4-"$(basename "$f")" + ssh ${_user}@ssh1.dm.unipi.it rm /home/${_user}/printa4-"$(basename "$f")" done fi }