diff --git a/hooks/onbuild b/hooks/onbuild
index c4a2796561fc23ddb44d06ea0b2195dbde0aca5e..08f78983ffdd4612161b1bba15988c46d8733943 100644
--- a/hooks/onbuild
+++ b/hooks/onbuild
@@ -12,4 +12,4 @@
 cd `dirname $0`
 cd ..
 
-ls -l shellscripts/gitsshwrapper.sh && chmod 755 && shellscripts/gitsshwrapper.sh
+ls -l shellscripts/gitsshwrapper.sh && chmod 755 shellscripts/gitsshwrapper.sh && shellscripts/gitsshwrapper.sh