git-commands
git-commands copied to clipboard
illegal line count
I'm getting the following error when trying the script:
$ git-commands
head: illegal line count --
~/bin/git-commands: line 31: 205 - : syntax error: operand expected (error token is " ")
Any idea what might be causing this?
$ git --version
git version 2.24.0
$ fzf --version
0.19.0 (brew)
The script in this repo failed at multiple places for me while running it on OSX.
You can refer to this commit to see how I modified it to work for me - https://github.com/Cartmanishere/git-commands/commit/a3187b906ca4b02649cf6ae60a6789fc8cf5aa5e
Your changes also solves an issue I had on Pop_Os!. Would you mind opening a PR with your changes @Cartmanishere?
@alpipego the changes I made are specific to OSX. And I'm sure it will break things on linux. I think a better way would be to figure out how to do the same things in a platform independent way.
@Cartmanishere that's what I was saying in my previous comment. Your fork runs fine on Pop_OS! (which is a derivative of Ubuntu), while this repo did not run there. I didn't look into it too much, though.