From 096f2ac12b796e02c2d535b1e7c5c09d587913fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20H=C3=BCbelbauer?= Date: Wed, 3 Jan 2018 12:10:31 +0100 Subject: [PATCH] Update pre-commit hook code in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26f967e..f6c5995 100644 --- a/README.md +++ b/README.md @@ -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." -- 2.18.1