Hi everyone,

I just downloaded the pre-commit hook from your webpage
http://www.mitk.org/wiki/File:Pre-commit.sample

To test it I added a whitespace and deleted the eof. Both were detected.
Then I fixed them and tried to commit the changes but received the
following errors from the hook:

d:/Projects/MITK_GH_OIGTL/.git/hooks/pre-commit: line 209: conditional
binary operator expected
d:/Projects/MITK_GH_OIGTL/.git/hooks/pre-commit: line 209: syntax error
near `=~'
d:/Projects/MITK_GH_OIGTL/.git/hooks/pre-commit: line 209: `      [[
${array[0]} =~ $path_regex ]] ||  echo "No valid image path, received :
${array[0]}"'

Does anybody know how to fix this in a proper way? Anyone else
experienced this error? At the moment I fixed it by commenting it out.
Therefore the function check_new_doxygen_image_tag_syntax is not doing
its job properly...

Best

Martin

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to