git-commands icon indicating copy to clipboard operation
git-commands copied to clipboard

illegal line count

Open teameh opened this issue 5 years ago • 4 comments

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)

teameh avatar Nov 18 '19 12:11 teameh

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

Cartmanishere avatar Jan 02 '20 07:01 Cartmanishere

Your changes also solves an issue I had on Pop_Os!. Would you mind opening a PR with your changes @Cartmanishere?

alpipego avatar Jan 09 '20 09:01 alpipego

@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 avatar Jan 09 '20 16:01 Cartmanishere

@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.

alpipego avatar Jan 17 '20 19:01 alpipego