commit | b90e523f589a0e2902823233010163f453243926 | [log] [tgz] |
---|---|---|
author | Rikard Almgren <rikardal@axis.com> | Tue Mar 21 12:32:34 2023 +0100 |
committer | Rikard Almgren <rikardal@axis.com> | Tue Mar 21 12:44:31 2023 +0100 |
tree | 07a2205e64fc4edd115557f2b9e3cfe7ce3fa90f | |
parent | b4209a5a4c334077b255002cbadc2ef659adee3c [diff] |
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
All documentation may be found under src/main/resources/Documentation/.