From 4b8d266d1f2d540aa937f5eb7ee1e4e9ced80cbe Mon Sep 17 00:00:00 2001 From: Eugene Chung Date: Thu, 31 Jan 2019 17:15:38 +0900 Subject: [PATCH] ~ -> $HOME On Mac, ~ is not translated to the home directory. I guess $HOME is more portable. --- docs/ssh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ssh.md b/docs/ssh.md index 4f875b5..3d79ab8 100644 --- a/docs/ssh.md +++ b/docs/ssh.md @@ -15,7 +15,7 @@ ssh-keyscan $YOUR_GIT_HOST > /tmp/known_hosts Use the ``kubectl create secret`` command and point to the file on your filesystem that stores the key. Ensure that the file is mapped to "ssh" as shown (the file can be located anywhere). ``` -kubectl create secret generic git-creds --from-file=ssh=~/.ssh/id_rsa --from-file=known_hosts=/tmp/known_hosts +kubectl create secret generic git-creds --from-file=ssh=$HOME/.ssh/id_rsa --from-file=known_hosts=/tmp/known_hosts ``` ***Method 2:***