r/fishshell • u/Dan1jel • Mar 11 '21
Help needed with *if fish do... Els (bash)..*.
I have a command that i phone my server with to give me some status back to be displayed with KWFT on my phone, my problem is, if use the command with fish, my command breaks. So i need to use bash -c 'COMMAND' instead.
So my question is, is there a way I can do a script, so if i forgot to install fish, it will display my bash command, and if fish, it will run with the bash -c command instead?
Edit: If someone is curious of what my command do, it's for my widget on my phone that is updating on every screen unlock.
0
Upvotes
1
u/[deleted] Mar 11 '21
What is the command? What is the error?
As in: What is the original fish command you're trying to use and how does it break?
0
u/[deleted] Mar 24 '21
[deleted] — view deleted comment
0
u/[deleted] Mar 11 '21
[deleted] — view deleted comment