mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-19 05:50:41 +08:00
16 lines
519 B
Bash
Executable File
16 lines
519 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
RUNTIME_DIR="${ROOT}/target/debug/gateway.runtime"
|
|
GATEWAY_BIN="${ROOT}/target/debug/gateway"
|
|
|
|
if [ "$(uname -s)" = "Darwin" ]; then
|
|
export DYLD_FALLBACK_LIBRARY_PATH="${RUNTIME_DIR}${DYLD_FALLBACK_LIBRARY_PATH:+:${DYLD_FALLBACK_LIBRARY_PATH}}"
|
|
fi
|
|
|
|
exec "${GATEWAY_BIN}" "$@"
|