Skip to content
Advertisement

Bash script conversion to fish

I’m trying to convert this script to fish: https://github.com/masahide/OmniSSHAgent/blob/main/hack/ubuntu-bash.setup.sh

This is my progress so far:

JavaScript

It should be fully converted except that main command substitution in the last function:

JavaScript

that raises this error:

JavaScript

And I don’t understand how to convert it. Can you help me? Thanks

Advertisement

Answer

Found the correct way to convert it (thanks to @masahide: https://github.com/masahide/OmniSSHAgent/issues/16#issuecomment-1107446991):

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement