mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
rpm: fix modulecmd pre-alternatives check
Was wrongly checking %{buildroot} content rather targeted system.
This commit is contained in:
@@ -167,7 +167,7 @@ make test
|
||||
# Cleanup from pre-alternatives
|
||||
[ ! -L %{_sysconfdir}/profile.d/modules.sh ] && rm -f %{_sysconfdir}/profile.d/modules.sh
|
||||
[ ! -L %{_sysconfdir}/profile.d/modules.csh ] && rm -f %{_sysconfdir}/profile.d/modules.csh
|
||||
[ ! -L %{buildroot}%{_bindir}/modulecmd ] && rm -f %{_bindir}/modulecmd
|
||||
[ ! -L %{_bindir}/modulecmd ] && rm -f %{_bindir}/modulecmd
|
||||
|
||||
# Migration from version 3.x to 4
|
||||
if [ "$(readlink /etc/alternatives/modules.sh)" = '%{_datadir}/Modules/init/modules.sh' ]; then
|
||||
|
||||
Reference in New Issue
Block a user