fix excaping

This commit is contained in:
Jakobus Schürz 2020-01-15 02:06:50 +01:00
parent f87156db6f
commit 42730132f0

View file

@ -223,7 +223,7 @@ sshmyshellconfig() {
CMD=""
else
local SSH="/usr/bin/ssh"
[ -e ${MYSHELLCONFIG_BASE}/bashrc_add ] && $SSH -T -o VisualHostKey=no $@ "mkdir -p ~/bashrc_add; cat > ~/${MYSHELLCONFIG_SUBPATH}/bashrc_add" < "${MYSHELLCONFIG_BASE}/bashrc_add"
[ -e ${MYSHELLCONFIG_BASE}/bashrc_add ] && $SSH -T -o VisualHostKey=no $@ "mkdir -p ~/\$(dirname \$MYSHELLCONFIG_BASE_PARENT); cat > ~/bashrc_add" < "${MYSHELLCONFIG_BASE}/bashrc_add"
local CMD="$SSH -T $@"
fi
$CMD /bin/bash << EOF