Closed ghost closed 4 years ago
Looks like a syntax issue on the hook 😅. Can't reproduce it on an OS X machine
I'm going to revert the changes we made into the hook, since it's a delicate thing to change
Fixed at 3.2.3
Now working! Thank you!
Hmm, my bad 😞 The changes I made to the hook script were using some extensions to the POSIX shell, which are only supported in shells like bash and zsh. It is not reproducible on MacOS as MacOS defaults to using a shell with extended POSIX support.
https://github.com/carloscuesta/gitmoji-cli/blob/8f71bff1561b180cd25c8bb734c77adf154d8bf7/src/commands/hook/hook.js#L5
This shebang should be replaced with #!/bin/bash
or #!/usr/bin/env bash
instead.
I'd add that if your script doesn't start with a shebang that explicitly requests a shell that supports [[ ]] (e.g. bash with #!/bin/bash or #!/usr/bin/env bash), you should use the portable option. Scripts that assume /bin/sh supports extensions like this will break on OSes like recent Debian and Ubuntu releases where that's not the case. – Gordon Davisson https://stackoverflow.com/a/13542854/7500339
Hello @carloscuesta!
Hi, I updated to 3.2.2, and everything seems to work fine, except some weird messages appearing in my terminal when commiting
Anyways, this isn't important. I can commit changes, but I think this should be fixed
This is my terminal log:
OS: Ubuntu 19.10 gitmoji-cli -v: 3.2.2 Node version: 12.16.1
Error Message: None