Fix ssh-config fallback

Tue, 12 Jan 2021 12:54:37 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 12 Jan 2021 12:54:37 -0600
changeset 890
fe8cbacbbb5d
parent 889
4400fb670a80
child 891
7947270fa776

Fix ssh-config fallback

.profile.common file | annotate | diff | comparison | revisions
--- a/.profile.common
+++ b/.profile.common
@@ -1,12 +1,12 @@
 # vim: ft=bash
 # simple profile stuff that is common to both zsh and bash
 
-umask 027
+make -s -C ~/.ssh || {
+  umask 077
+  cat ~/.ssh/config.d/* > ~/.ssh/config
+}
 
-make -s -C ~/.ssh || {
-  cat ~/.ssh/config.d/* > ~/.ssh/config &&
-  chmod 600 $_
-}
+umask 027
 
 export MANPATH=$HOME/.man:
 

mercurial