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 @@ -842,27 +842,35 @@ postinstall() {
842842 fi
843843 done
844844 fi
845- }
846845
847- }
848- if [ -z " $added " ]; then
849- cat >&2 << EOF
846+ # TODO: Investigate use of:
847+ # "Attempting to execute login from any shell but the login shell will produce an error message"
850848
851- Installation finished! To ensure that the necessary environment
852- variables are set, please add the line
849+ if [ " $added " -eq 0 ] ; then
850+ notice "
853851
854- . $p
852+ Installation finished!
853+ To ensure that environment variables are set for Nix,
854+ please add the line
855855
856- to your shell profile (e.g. ~/.profile).
857- EOF
858- else
859- cat >&2 << EOF
856+ . $nix -profile
860857
861- Installation finished! To ensure that the necessary environment
862- variables are set, either log in again, or type
858+ to your shell profile (e.g. ~/.profile).
859+ "
863860
864- . $p
861+ else
862+ notice "
865863
866- in your shell.
867- EOF
868- fi
864+ Installation finished!
865+ To use Nix - re-login to shell environment.
866+ Or to use it directly now, in the current runtime environment -
867+ run this script to set Nix-specific environment variables:
868+
869+ . $nix -profile
870+
871+ in current runtime environment.
872+ "
873+ fi
874+ }
875+
876+ }
You can’t perform that action at this time.
0 commit comments