Commit 096f2ac1 authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Update pre-commit hook code in README

parent 9fa99733
...@@ -58,11 +58,11 @@ code .git/hooks/pre-commit ...@@ -58,11 +58,11 @@ code .git/hooks/pre-commit
```sh ```sh
#!/usr/bin/env bash #!/usr/bin/env bash
if [ command -v powershell ] if [ ! -z "command -v powershell" ]
then then
powershell cmd/version-office-files.ps1 powershell cmd/version-office-files.ps1
elif elif [ ! -z "command -v pwsh" ]
then [ command -v pwsh ] then
pwsh cmd/version-office-files.ps1 pwsh cmd/version-office-files.ps1
else else
echo "PowerShell is not installed." echo "PowerShell is not installed."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment