reworked equality test to be sh-compatible

running this script as sudo ./setup-k8s-prereqs.sh would hit
"./setup-k8s-prereqs.sh: 22: [: bionic: unexpected operator"

explanation : https://stackoverflow.com/a/3411105

since script is "marketed" as sh, use "=" instead of "==" which works both under sh and bash
This commit is contained in:
Guillaume-Fourrat
2019-09-18 16:48:09 +02:00
committed by GitHub
parent 394257f2a1
commit 261e1993c4
@@ -19,7 +19,7 @@ apt-get install -y kubelet=$KUBE_DPKG_VERSION kubeadm=$KUBE_DPKG_VERSION kubectl
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
. /etc/os-release
if [ "$UBUNTU_CODENAME" == "bionic" ]; then
if [ "$UBUNTU_CODENAME" = "bionic" ]; then
modprobe br_netfilter
fi
sysctl net.bridge.bridge-nf-call-iptables=1