mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Don't fail when sourcing /etc/profile
This commit is contained in:
parent
1180463c34
commit
9b0ef8094a
1 changed files with 10 additions and 6 deletions
|
@ -6808,14 +6808,18 @@ install_macosx_git() {
|
|||
}
|
||||
|
||||
install_macosx_stable_post() {
|
||||
if [ ! -f /etc/paths.d/salt ]; then
|
||||
print "%s\n" "/opt/salt/bin" "/usr/local/sbin" > /etc/paths.d/salt
|
||||
fi
|
||||
if [ ! -f /etc/paths.d/salt ]; then
|
||||
print "%s\n" "/opt/salt/bin" "/usr/local/sbin" > /etc/paths.d/salt
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
. /etc/profile
|
||||
# Don'f fail because of unknown variable on the next step
|
||||
set +o nounset
|
||||
# shellcheck disable=SC1091
|
||||
. /etc/profile
|
||||
# Revert nounset to it's previous state
|
||||
set -o nounset
|
||||
|
||||
return 0
|
||||
return 0
|
||||
}
|
||||
|
||||
install_macosx_git_post() {
|
||||
|
|
Loading…
Add table
Reference in a new issue