Closed kenhys closed 4 months ago
Thanks!
Are there file names that are not covered by this?
mv -f '/etc/<%= compat_package_dir %>/$d' '/etc/<%= package_dir %>/'
mv -f '/etc/<%= compat_package_dir %>/$d' '/etc/<%= package_dir %>/'
It is not covered because of combination with for d in ...
doesn't work as expected.
Oh, sorry. As you say, we can't use '
here.
What about "
?
mv -f "/etc/<%= compat_package_dir %>/$d" '/etc/<%= package_dir %>/'
As #613 was merged, rebased with master.
This looks good, but is there any reason you didn't use for d in $(ls /etc/<%= compat_package_dir %>)?
I've just overlooked that for d in "$(ls /etc/<%= compat_package_dir %>/)"
would work.
We can omit more paths with for d in "$(ls /etc/<%= compat_package_dir %>/)"
, but I think the current codes are fine.
Both would be fine.
Thank you for reviewing!
There was a case that missing quote about file name causes migration failures.
Usually such files should not be generated, but need to care it in practical use case.