added null pointers

This commit is contained in:
2023-12-22 19:54:13 -06:00
parent ba23e2aafe
commit 25bba1486e

View File

@@ -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