mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 18:45:00 +00:00
fix: install.sh bash specific equality check (#3038)
fix == to = for sh portability Signed-off-by: Dave Lee <dave@gray101.com>
This commit is contained in:
parent
3a70cf311b
commit
7c4e526853
1 changed files with 2 additions and 2 deletions
4
docs/static/install.sh
vendored
4
docs/static/install.sh
vendored
|
@ -194,7 +194,7 @@ install_container_toolkit_yum() {
|
||||||
curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo | \
|
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
|
$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
|
$SUDO $PACKAGE_MANAGER config-manager --enable nvidia-container-toolkit-experimental
|
||||||
else
|
else
|
||||||
$SUDO $PACKAGE_MANAGER -y install yum-utils
|
$SUDO $PACKAGE_MANAGER -y install yum-utils
|
||||||
|
@ -629,7 +629,7 @@ case "$ARCH" in
|
||||||
*) fatal "Unsupported architecture: $ARCH" ;;
|
*) fatal "Unsupported architecture: $ARCH" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$OS" == "Darwin" ]; then
|
if [ "$OS" = "Darwin" ]; then
|
||||||
install_binary_darwin
|
install_binary_darwin
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue