rycus86 / githooks

Githooks: per-repo and global Git hooks with version control
MIT License
382 stars 20 forks source link

Install fails in Linux with `bash: /usr/bin/sh: Argument list too long` #80

Closed obonyojimmy closed 4 years ago

obonyojimmy commented 4 years ago

OS: Ubuntu Linux 19.01

Running install script sh -c "$(curl -fsSL https://raw.githubusercontent.com/rycus86/githooks/master/install.sh)" fails with error

bash: /usr/bin/sh: Argument list too long

rycus86 commented 4 years ago

Thanks for reporting! I'll have a look. In the meantime, you should be able to download and run the install script, for example:

curl -fsSL https://raw.githubusercontent.com/rycus86/githooks/master/install.sh -o githooks-install.sh && sh githooks-install.sh
obonyojimmy commented 4 years ago

works when piped to shell executor source <(curl -fsSL https://r.viktoradam.net/githooks)