i want to setup a git pre commit hook entirely in nimscript

this means I cant execute the file with `nim e somefile`

e.g. this file
    
    
    ## .git/hooks/nimprecommit
    
    #!/usr/bin/env nim
    
    echo "123"
    
    
    
    
    Run

if executed
    
    
    $ chmod +x .git/hooks/nimprecommit
    
    $ ./.git/hooks/nimprecommit
    Error: invalid command: .git/hooks/nimprecommit
    
    
    
    Run

I'm thinking this is a OS configuration issue, as node's shebang works just fine

Reply via email to