From 5459f5aa8cd8ba69f32e0477187cbcbb1ec3cd47 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 14 Dec 2025 11:56:07 -0800 Subject: [PATCH] fix(nvm): Add nvm-exec (#8373) (#8375) * fix(nvm): Add nvm-exec * fix: Missed `-i` --------- (cherry picked from commit 8aade1a93def391be37c5d0ee96da0449e9db4bf) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/tools/nvm/nvm.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/anda/tools/nvm/nvm.spec b/anda/tools/nvm/nvm.spec index b9ae089afd..4f36074d1f 100644 --- a/anda/tools/nvm/nvm.spec +++ b/anda/tools/nvm/nvm.spec @@ -1,6 +1,6 @@ Name: nvm Version: 0.40.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Node Version Manager License: MIT URL: https://github.com/nvm-sh/nvm @@ -26,17 +26,21 @@ POSIX-compliant script to manage multiple active Node.js versions. %install install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/%{name} +install -Dm755 nvm-exec -t %{buildroot}%{_bindir} install -Dm644 bash_completion %{buildroot}%{bash_completions_dir}/%{name}.bash # Another cursed script that uses bashcompinit to use one file for Bash and Zsh completions install -Dm644 bash_completion %{buildroot}%{zsh_completions_dir}/_%{name} +# Make NVM expect nvm-exec in the bindir +sed -i 's|${NVM_DIR}/nvm-exec|%{_bindir}/nvm-exec|g' %{name}.sh install -Dm644 %{name}.sh -t %{buildroot}%{_sysconfdir}/profile.d %files %license LICENSE.md %doc README.md %{_bindir}/%{name} +%{_bindir}/%{name}-exec %{_sysconfdir}/profile.d/%{name}.sh %changelog