Fix spurious "h " in canonicalization list.
This commit is contained in:
@ -3,13 +3,12 @@ rm -f ~/.ssh/search
|
|||||||
|
|
||||||
if [ -e ${CSHENV_DIR}/ssh/ssh-search-domains ]
|
if [ -e ${CSHENV_DIR}/ssh/ssh-search-domains ]
|
||||||
then
|
then
|
||||||
domains=`grep "^search" /etc/resolv.conf | cut -c 6- - | cat - ${CSHENV_DIR}/ssh/ssh-search-domains | xargs`
|
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | cat - ${CSHENV_DIR}/ssh/ssh-search-domains | xargs`
|
||||||
else
|
else
|
||||||
domains=`grep "^search" /etc/resolv.conf | cut -c 6- - | xargs`
|
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | xargs`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${domains}" ] ; then exit 1; fi
|
if [ -z "${domains}" ] ; then exit 1; fi
|
||||||
echo ${domains}
|
|
||||||
|
|
||||||
printf "Host *\n\tCanonicalDomains ${domains}\n\tCanonicalizeHostname yes\n# v" > ~/.ssh/search
|
printf "Host *\n\tCanonicalDomains ${domains}\n\tCanonicalizeHostname yes\n# v" > ~/.ssh/search
|
||||||
printf "im:ft=sshconfig" >> ~/.ssh/search
|
printf "im:ft=sshconfig" >> ~/.ssh/search
|
||||||
|
Reference in New Issue
Block a user