-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional Git repositories not expanding environment variables like $HOME
or ~
#921
Comments
Hi, from my test
|
Thanks for searching existing issues before filing a new one:)
Topgrade currently won't expand the strings configured in custom commands, they are directly passed to user's This issue is possibly because a log-in shell won't have the config set in an interactive shell, so it cannot see the |
Topgrade uses |
Tried that and it still doesn't work. I should probably also mention that
Would be awesome if environment variables expansion could be supported! |
Of course!
Thanks for clarifying! |
Erroneous Behavior
Within the
[git]
section oftopgrade.toml
,repos = ["/home/xxx/Documents/Git/*"]
is expanded, whereasrepos = ["$HOME/Documents/Git/*"]
as well asrepos = ["~/Documents/Git/*"]
orrepos = ["$GIT/*"]
don't expand.Expected Behavior
all of the above expand properly (subdirectories of Git/ as well as environment variables)
Steps to reproduce
alter
topgrade.toml
accordinglyPossible Cause (Optional)
shell or topgrade don't expand variables
Did you run topgrade through
Remote Execution
Configuration file (Optional)
Additional Details
Operation System/Version
openSUSE Tumbleweed, Debian Sid, macOS
Installation
package manager (zypper, apt, brew)
Topgrade version (
topgrade -V
)Topgrade 15.0.0
Verbose Output (
topgrade -v
)I should probably also mention that I'm tracking my entire home directory with Git, so the Git directories above are nested.
The text was updated successfully, but these errors were encountered: