File tree Expand file tree Collapse file tree 1 file changed +25
-17
lines changed Expand file tree Collapse file tree 1 file changed +25
-17
lines changed Original file line number Diff line number Diff line change @@ -841,27 +841,35 @@ postinstall() {
841841 fi
842842 done
843843 fi
844- }
845844
846- }
847- if [ -z " $added " ]; then
848- cat >&2 << EOF
845+ # TODO: Investigate use of:
846+ # "Attempting to execute login from any shell but the login shell will produce an error message"
849847
850- Installation finished! To ensure that the necessary environment
851- variables are set, please add the line
848+ if [ " $added " -eq 0 ] ; then
849+ notice "
852850
853- . $p
851+ Installation finished!
852+ To ensure that environment variables are set for Nix,
853+ please add the line
854854
855- to your shell profile (e.g. ~/.profile).
856- EOF
857- else
858- cat >&2 << EOF
855+ . $nix -profile
859856
860- Installation finished! To ensure that the necessary environment
861- variables are set, either log in again, or type
857+ to your shell profile (e.g. ~/.profile).
858+ "
862859
863- . $p
860+ else
861+ notice "
864862
865- in your shell.
866- EOF
867- fi
863+ Installation finished!
864+ To use Nix - re-login to shell environment.
865+ Or to use it directly now, in the current runtime environment -
866+ run this script to set Nix-specific environment variables:
867+
868+ . $nix -profile
869+
870+ in current runtime environment.
871+ "
872+ fi
873+ }
874+
875+ }
You can’t perform that action at this time.
0 commit comments