fix(nvm): Add nvm-exec (#8373)

* fix(nvm): Add nvm-exec

* fix: Missed `-i`

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Gilver
2025-12-14 13:54:27 -06:00
committed by GitHub
parent 420693d235
commit 8aade1a93d
+5 -1
View File
@@ -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