Only chmod if commit-msg hook was fetched successfully

There is no reason to attempt to chmod the commit-msg hook if it
failed to download, so use '&&' instead of ';'.

Some shells, and some shell extensions in particular (f.i. zsh and
oh-my-zsh), have url magic features that automatically attempt to
escape characters in conjunction with urls.

This can cause the current implementation to fail as it would escape
the ';' because it was connected to the curl command argument.
This in turn causes the curl command to fail as it would interpret
the chmod command as another argument to curl.

This resolves both issues by chaining the command instead.

Change-Id: I4304abbb11b7be63686bec51b200874fa00eab81
2 files changed
tree: 07a2205e64fc4edd115557f2b9e3cfe7ce3fa90f
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE
  5. README.md
README.md

Gerrit download-commands plugin

All documentation may be found under src/main/resources/Documentation/.