From cb2e1d77ceddc9ff7a5f7f9ac8474a46bf10d2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 27 Apr 2021 17:54:23 +0200 Subject: [PATCH] add debug --- functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index 3a5e91f..add497f 100755 --- a/functions.sh +++ b/functions.sh @@ -406,10 +406,12 @@ EOF if [ -e "${TMPBASHCONFIG}" ] ; then local RCMD="/bin/bash --noprofile --norc -c " logdebug "create remote bashrc" - local REMOTETMPBASHCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t bashrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]' ) + local REMOTETMPBASHCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t bashrc.XXXXXXXX --suffix=.conf" 2> ~/myshellconfig.log | tr -d '[:space:]' ) + logwarn "REMOTETMPBASHCONFIG: $REMOTETMPBASHCONFIG" ssh -T ${SSH_OPTS} $@ "stat ${REMOTETMPBASHCONFIG}" + ssh -T ${SSH_OPTS} $@ "hostnamectl" logdebug "create remote vimrc" - local REMOTETMPVIMCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t vimrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]') + local REMOTETMPVIMCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t vimrc.XXXXXXXX --suffix=.conf" 2> ~/myshellconfig.log | tr -d '[:space:]' ) # Add additional aliases to bashrc for remote-machine cat << EOF >> "${TMPBASHCONFIG}"