Permalink
Browse files

Removed "touch" on sources.list.d (#10427)

touch is not necessary as the "tee" command will create the file regardless if it exists or not
  • Loading branch information...
dsalamancaMS authored and k8s-ci-robot committed Oct 4, 2018
1 parent 559c577 commit af2207017fdbcb4fb4cb8c3a1136c8d5ac6326e2
Showing with 0 additions and 1 deletion.
  1. +0 −1 content/en/docs/tasks/tools/install-kubectl.md
@@ -28,7 +28,6 @@ Here are a few methods to install kubectl.
{{< tab name="Ubuntu, Debian or HypriotOS" codelang="bash" >}}
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo touch /etc/apt/sources.list.d/kubernetes.list
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl

0 comments on commit af22070

Please sign in to comment.