mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
guix-install.sh: Check if ~/.guix-profile exists properly.
Currently the check only looks if ~/.guix-profile symlink exists. That, however, is not sufficient. This file might be created prior to creation of the first generation of user's profile. So we should be checking that the profile does have the file we're looking for - etc/profile. This is the same way how /etc/profile solves this on Guix System. * etc/guix-install.sh (sys_create_init_profile): Properly check if ~/.guix-profile exists. Change-Id: I1a650cb5b845ca96705361e332409c3b49000057 Signed-off-by: Rutherther <rutherther@ditigal.xyz> Merges: #5123
This commit is contained in:
@@ -799,7 +799,7 @@ export MANPATH="$GUIX_PROFILE/share/man:${MANPATH:-}"
|
||||
|
||||
# User's default profile, if it exists
|
||||
GUIX_PROFILE="$HOME/.guix-profile"
|
||||
if [ -L "$GUIX_PROFILE" ]; then
|
||||
if [ -f "$GUIX_PROFILE/etc/profile" ]; then
|
||||
. "$GUIX_PROFILE/etc/profile"
|
||||
|
||||
# see info '(guix) Application Setup'
|
||||
|
||||
Reference in New Issue
Block a user