From 25bba1486e5002a967bb25d248f3b0dc624d4928 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 22 Dec 2023 19:54:13 -0600 Subject: [PATCH] added null pointers --- debian/debian-configure-sshd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/debian-configure-sshd.sh b/debian/debian-configure-sshd.sh index 8174135..5b0c86d 100644 --- a/debian/debian-configure-sshd.sh +++ b/debian/debian-configure-sshd.sh @@ -75,7 +75,7 @@ isInFile=$(cat /home/akanealw/.ssh/config | grep -c "*root") if [ $isInFile -eq 0 ] then cp /home/akanealw/.ssh/config /home/akanealw/.ssh/config.bak > /dev/null 2>&1 - mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old + mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old > /dev/null 2>&1 echo "" >> /home/akanealw/.ssh/config echo "" >> /home/akanealw/.ssh/config echo "Host *-root" >> /home/akanealw/.ssh/config @@ -96,7 +96,7 @@ isInFile=$(cat /root/.ssh/config | grep -c "*root") if [ $isInFile -eq 0 ] then cp /root/.ssh/config /root/.ssh/config.bak > /dev/null 2>&1 - mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old + mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old > /dev/null 2>&1 echo "" >> /root/.ssh/config echo "" >> /root/.ssh/config echo "Host *-root" >> /root/.ssh/config