notify ssh multiple args

This commit is contained in:
olli 2024-08-19 22:25:38 +02:00
parent 1cad21e43e
commit 3fa540eb85

View File

@ -709,7 +709,7 @@
then
opts=$SSH_ORIGINAL_COMMAND
unset SSH_ORIGINAL_COMMAND
eval /usr/bin/bash $(printf '/usr/local/bin/notify.sh %q' "$opts" | sed 's#\\\\##g; s# \\ # #g; s# \\ # #g')
eval /usr/bin/bash $(printf '/usr/local/bin/notify.sh %q' "$opts" | sed 's#\\\\##g; s# \\ # #g; s# \\ # #g; s#\\ -# -#g')
exit $?
fi