Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to invoke the script as bash even the default shell on server is fishshell? #374

Closed
chengguangnan opened this issue Feb 22, 2016 · 1 comment

Comments

@chengguangnan
Copy link

I noticed that do mina setup --simulate, it prints a shebang using bash #!/usr/bin/env bash.

However, running mina setup would run the script with default shell on sever, which is fish-shell is my case.

Is there a way for mina to switch to bash when executing the command?

       Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
       fish: echo "-----> Setting up /u/apps/" && (
       ^

 !     Command failed.
       Failed with status 1 (127)

@d4be4st
Copy link
Member

d4be4st commented Jul 8, 2016

Mina can't change this. Mina uses your ssh user and runs a script on the server. You need to change your default shell for deploy user to use bash instead of fish-shell

http://serverfault.com/questions/106722/choosing-the-shell-that-ssh-uses

@d4be4st d4be4st closed this as completed Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants