better cleanup

This commit is contained in:
fatalerrors
2026-05-19 16:57:27 +02:00
parent ee72ede116
commit 5faae67d11

View File

@@ -161,8 +161,6 @@ if ((BASH_VERSINFO[0] < 4)) || [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1
(return 0 2>/dev/null) && return 1 || exit 1 (return 0 2>/dev/null) && return 1 || exit 1
fi fi
unset -f _profile_is_sourced _profile_finish _profile_install_in_file _profile_install
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# path* : private functions for PATH variable management # path* : private functions for PATH variable management
pathremove() pathremove()
@@ -408,7 +406,9 @@ if [[ $INTERACTIVE ]]; then
fi fi
# Cleanup # Cleanup
unset pathremove pathprepend pathappend unset -f _profile_is_sourced _profile_finish _profile_install_in_file _profile_install
unset -f parse_conf load_alias load_conf
unset -f pathremove pathprepend pathappend
#return 0 #return 0