Improvements.

This commit is contained in:
David Tomaschik
2019-04-16 23:07:57 -07:00
parent cb5df8e7e6
commit 1fcdb910a2

View File

@@ -171,7 +171,7 @@ install_known_hosts() {
mkdir -p ${HOME}/.ssh mkdir -p ${HOME}/.ssh
if [ -f "${HOME}/.ssh/known_hosts" ] ; then if [ -f "${HOME}/.ssh/known_hosts" ] ; then
local tmpf=`mktemp` local tmpf=`mktemp`
cat ${BASEDIR}/keys/known_hosts ${HOME}/.ssh/known_hosts | sort | uniq > $tmpf cat ${BASEDIR}/keys/known_hosts ${HOME}/.ssh/known_hosts | sort -u > $tmpf
mv $tmpf ${HOME}/.ssh/known_hosts mv $tmpf ${HOME}/.ssh/known_hosts
else else
cp ${BASEDIR}/keys/known_hosts ${HOME}/.ssh/known_hosts cp ${BASEDIR}/keys/known_hosts ${HOME}/.ssh/known_hosts