mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
makepkg : use /etc/profile
This fixes FS#9486. source /etc/profile instead of all individual files in /etc/profile.d/* (which is done by /etc/profile anyway). Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
428b2fd8cc
commit
0e0a846135
@ -343,13 +343,8 @@ handledeps() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# rerun any additional sh scripts found in /etc/profile.d/
|
# we might need the new system environment
|
||||||
local script
|
source /etc/profile &>/dev/null
|
||||||
for script in /etc/profile.d/*.sh; do
|
|
||||||
if [ -x $script ]; then
|
|
||||||
source $script &>/dev/null
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
return $R_DEPS_SATISFIED
|
return $R_DEPS_SATISFIED
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user