# [PATCH] fix shell syntax error in template

1 messages from 2013-08-30 to 2013-08-30. Participants: Thorsten Glaser.
Thread: https://gitlist.dev/t/34809

## Thorsten Glaser, 2013-08-30 10:40

Subject: [PATCH] fix shell syntax error in template
Message-ID: <20130830104308.AAF467001B5@tglase.lan.tarent.de>
URL: https://gitlist.dev/e/20130830104308.AAF467001B5%40tglase.lan.tarent.de

```
an if clause must not be empty; add a "colon" command

Signed-off-by: Thorsten Glaser <t.glaser@tarent.de>
---
 templates/hooks--pre-push.sample | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/hooks--pre-push.sample b/templates/hooks--pre-push.sample
index 15ab6d8..1f3bceb 100755
--- a/templates/hooks--pre-push.sample
+++ b/templates/hooks--pre-push.sample
@@ -30,6 +30,7 @@ do
 	if [ "$local_sha" = $z40 ]
 	then
 		# Handle delete
+		:
 	else
 		if [ "$remote_sha" = $z40 ]
 		then
-- 
1.8.4.rc3

```
