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
```sh
#!/usr/bin/env bash
if [ command -v powershell ]
if [ ! -z "command -v powershell" ]
then
powershell cmd/version-office-files.ps1
elif
then [ command -v pwsh ]
elif [ ! -z "command -v pwsh" ]
then
pwsh cmd/version-office-files.ps1
else
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