Escape paths to allow for spaces

This commit is contained in:
Thomas Avé 2023-09-17 21:08:00 +02:00
parent d7263b8c51
commit 741d0f4d1e
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ then
if [ $PROCESS == "ssh" ]
then
PORT=$(ss -tnpa | grep ssh | grep "pid=$GRAND_CHILD_PID" | awk '{ print $4 }' | grep -o '[0-9]*$')
alacritty -e $COMMAND -t "cd \$(readlink -e /proc/\$(cat /tmp/ssh_session_$PORT)/cwd); zsh --login"
alacritty -e $COMMAND -t "cd \"\$(readlink -e /proc/\$(cat /tmp/ssh_session_$PORT)/cwd)\"; zsh --login"
exit 0
fi
fi