Skip to content

Commit 261e199

Browse files
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
1 parent 394257f commit 261e199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/setup-k8s-prereqs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apt-get install -y kubelet=$KUBE_DPKG_VERSION kubeadm=$KUBE_DPKG_VERSION kubectl
1919
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
2020

2121
. /etc/os-release
22-
if [ "$UBUNTU_CODENAME" == "bionic" ]; then
22+
if [ "$UBUNTU_CODENAME" = "bionic" ]; then
2323
modprobe br_netfilter
2424
fi
2525
sysctl net.bridge.bridge-nf-call-iptables=1

0 commit comments

Comments
 (0)