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
This commit is contained in:
committed by
k8s-ci-robot
parent
559c5778eb
commit
af2207017f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user