You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: install.sh fails with 'BASH_SOURCE[0]: unbound variable' when piped via curl #655
PR #470 added SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" near the top of install.sh. When the script is piped via curl | bash, BASH_SOURCE is empty and set -u (from set -euo pipefail) treats it as an unbound variable.
Note: The test log that surfaced this issue also showed a second failure — the cgroup v2 gateway crash (openat2 /sys/fs/cgroup/kubepods/pids.max: no such file or directory). That's a separate, pre-existing issue tracked in #136. If you hit both, the BASH_SOURCE fix (#656) resolves the first error but the cgroup issue will still block gateway startup until #136 is resolved.
Activity
fix: handle unbound BASH_SOURCE when install.sh is piped via curl
ericksoa commentedon Mar 22, 2026
Workaround: Clone and run locally instead of piping:
git clone --depth 1 https://github.com/NVIDIA/NemoClaw.git cd NemoClaw bash install.shFix: PR #656 — one-line change, pending merge.
ericksoa commentedon Mar 22, 2026
Note: The test log that surfaced this issue also showed a second failure — the cgroup v2 gateway crash (
openat2 /sys/fs/cgroup/kubepods/pids.max: no such file or directory). That's a separate, pre-existing issue tracked in #136. If you hit both, theBASH_SOURCEfix (#656) resolves the first error but the cgroup issue will still block gateway startup until #136 is resolved.fix: handle unbound BASH_SOURCE when install.sh is piped via curl (#656)
fix: handle unbound BASH_SOURCE when install.sh is piped via curl (NV…
fix: handle unbound BASH_SOURCE when install.sh is piped via curl (NV…
fix: handle unbound BASH_SOURCE when install.sh is piped via curl (NV…