Fix if statement
This commit is contained in:
parent
35e9d4c6c9
commit
c60a66b32b
@ -407,7 +407,7 @@ cat <<EOF
|
||||
EOF
|
||||
|
||||
# automatically add ssh keys to agent
|
||||
if [[ grep -L "AddKeysToAgent yes" "$HOME/.ssh/config" ]]; then
|
||||
if grep -L "AddKeysToAgent yes" "$HOME/.ssh/config"; then
|
||||
sed -i '' '1i\
|
||||
AddKeysToAgent yes
|
||||
' "$HOME/.ssh/config"
|
||||
|
Loading…
Reference in New Issue
Block a user