diff --git a/.gitignore b/.gitignore index bbb5845..7a53a34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .secrets.cfg* __pycache__ *.swp +.direnv +.envrc.local diff --git a/scripts/update-ssh-client-config b/scripts/update-ssh-client-config index dc86661..ba5acde 100755 --- a/scripts/update-ssh-client-config +++ b/scripts/update-ssh-client-config @@ -12,7 +12,7 @@ BW_TABLE_STYLE=grep bw nodes -a hostname -- "lambda:not node.dummy" | \ while read node addr do - if [[ -z "$BW_SSH_HOOK_EXTRA_LINE" ]] + if [[ -n "$BW_SSH_HOOK_EXTRA_LINE" ]] then echo "Host $addr" >>"$tmpfile" echo "$BW_SSH_HOOK_EXTRA_LINE" >>"$tmpfile" @@ -20,7 +20,7 @@ fi echo "Host $node" >>"$tmpfile" echo "HostName $addr" >>"$tmpfile" - if [[ -z "$BW_SSH_HOOK_EXTRA_LINE" ]] + if [[ -n "$BW_SSH_HOOK_EXTRA_LINE" ]] then echo "$BW_SSH_HOOK_EXTRA_LINE" >>"$tmpfile" fi