iwata/git-now — Issue #2: use a proper shell
Author: marczz
Created: 2012-03-03 09:00:52+00:00
State: open

Under debian /bin/sh is now dash. Git-now fail with a cryptic message:

git-now-add: Syntax error: "(" unexpected (expecting "fi")

because dash does not understand args=()

It works well by replacing `#!/bin/sh` by `#!/bin/bash` in the script.

It took some time for me to understand, because there were no error when trying my default shell (my login sh is bash)
but didn't work as a command (with dash).

May be you could try to switch the shell in the makefile if the default is not convenient, or if it is difficult just give an advice in the [readme](https://github.com/iwata/git-now/blob/master/README.mdown).

Marc