Closed littleli closed 2 years ago
After short conversation with @borkdude it turned out fs/expend-home
will be fixed with the very next release of bb
Thanks for creating this issue. I bumped the minimum Babashka version to 0.9.162
and made sure we check this even in the generated bbin
script.
This is from Windows Terminal + Powershell:
Error reported on https://github.com/babashka/bbin/blob/main/bbin#L61
But in fact the issue seems to be here https://github.com/babashka/bbin/blob/main/bbin#L47
Looks like
(fs/expand-home)
is not working correctly and it forgets last component from the path. I'll do a bug report tobabashka/fs
too.My recommendation is to get user directory from environment variables which are mutually exclusive on each platform, something along these lines:
Probably just wait a moment to
fs/expand-home
to be fixed.