Removed "touch" on sources.list.d (#10427)
touch is not necessary as the "tee" command will create the file regardless if it exists or notpull/10419/merge
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue