You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixgit-ecosystem#1304.
I found that the add func add_to_PATH [1] doesn't persist the path
to the $PATH env variable.
To persist in the current shell is necessary to use a dot or `source`
see doc [2].
_When a script is run using source it runs within the existing shell,
any variables created or modified by the script will remain available
after the script completes. In contrast if the script is run just as
filename, then a separate subshell (with a completely separate set of
variables) would be spawned to run the script._
To persist the PATH among the reboot/new shell, it is necessary to
update the _.profile_ with `echo 'PATH="$PATH:$installPath'
>>~/.profile`.
I don't know if this is the correct behavior, Prior to this commit, it
was working because the `/usr/local/bin` is already in the PATH.
[1]: https://github.com/git-ecosystem/git-credential-manager/blob/afcb6b87302b34d1809a0a057f24c7ba7a3ff5db/src/linux/Packaging.Linux/install-from-source.sh#L94
[2]: https://ss64.com/bash/source.htmlvvvvvvv
0 commit comments