DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 382 forks source link

BugFix: Remove unnecessary "export" #72

Closed TheEndHunter closed 2 years ago

TheEndHunter commented 2 years ago

exports PRE_NAMESPACE_PWD and PRE_NAMESPACE_PATH variables to environment variables cause the PWD/PATH will set to PRE_NAMESPACE_PWD/PRE_NAMESPACE_PATH every time while you start a bash. (the unset does not work cause it can only unset local variables)

solution: removes "export" words at the start of the definition of PRE_NAMESPACE_PWD and PRE_NAMESPACE_PATH