From 7c4e5268539c913b454003ce478599c10a7bc0bc Mon Sep 17 00:00:00 2001 From: Dave Date: Sun, 28 Jul 2024 19:19:36 -0400 Subject: [PATCH] fix: install.sh bash specific equality check (#3038) fix == to = for sh portability Signed-off-by: Dave Lee --- docs/static/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/static/install.sh b/docs/static/install.sh index 3209b24e..8d928750 100644 --- a/docs/static/install.sh +++ b/docs/static/install.sh @@ -194,7 +194,7 @@ install_container_toolkit_yum() { curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo | \ $SUDO tee /etc/yum.repos.d/nvidia-container-toolkit.repo - if [ "$PACKAGE_MANAGER" == "dnf" ]; then + if [ "$PACKAGE_MANAGER" = "dnf" ]; then $SUDO $PACKAGE_MANAGER config-manager --enable nvidia-container-toolkit-experimental else $SUDO $PACKAGE_MANAGER -y install yum-utils @@ -629,7 +629,7 @@ case "$ARCH" in *) fatal "Unsupported architecture: $ARCH" ;; esac -if [ "$OS" == "Darwin" ]; then +if [ "$OS" = "Darwin" ]; then install_binary_darwin exit 0 fi