EliziumNet / RexFs

Regular expression based Bulk File/Directory renamer
MIT License
4 stars 2 forks source link

remy undo script not defaulting to correct directory #28

Closed plastikfan closed 2 years ago

plastikfan commented 3 years ago

When ELIZIUM_PATH is not defined, undo scripts should go into $HOME/remy/.elizium, but instead they are going into $HOME/.elizium

plastikfan commented 3 years ago

oops, I'm not using the latest version, this may be a bogus issue

plastikfan commented 2 years ago

I think this is being caused by a problem in Loopz, function Use-EliziumPath:

[string]$homePath = Get-EnvironmentVariable 'HOME';

This does not do what is expected; the HOME path is not an environment vriable, rather it is a special powershell variable: $HOME. But actually, I think that Get-EnvironmentVariable should be modified to treat 'HOME' as a special case that returns $HOME. The reason for this is that getting the HOME should be interceptable for the purpose of testing. We can use the default parameter and set that to HOME. This way, we dont have to update Krayola and re-release it.

plastikfan commented 2 years ago

The root cause has been fixed (breaking change, DryRun variable removed) inside Loopz (Initialize-ShellOperant), but there is still a change to make inside Rename-Many; dont use the DryRun flag.

plastikfan commented 2 years ago

Also added Elizium.Krayola v3.0.0 and Elizium.Loopz v4.0.0 to RequiredModules in .psd file.