mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
core.func: prevent profile.d scripts from aborting on non-zero exit
This commit is contained in:
@@ -143,7 +143,7 @@ ensure_profile_loaded() {
|
|||||||
# Source all profile.d scripts to ensure PATH is complete
|
# Source all profile.d scripts to ensure PATH is complete
|
||||||
if [[ -d /etc/profile.d ]]; then
|
if [[ -d /etc/profile.d ]]; then
|
||||||
for script in /etc/profile.d/*.sh; do
|
for script in /etc/profile.d/*.sh; do
|
||||||
[[ -r "$script" ]] && source "$script"
|
[[ -r "$script" ]] && source "$script" || true
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user