nuxt-community / typescript-template

Typescript starter for Nuxt 2
https://nuxt-ts-template.netlify.app/
MIT License
643 stars 114 forks source link

chore: add shebang to init.sh #311

Closed nokazn closed 3 years ago

nokazn commented 3 years ago

Overview

Hi, there. I run the below command, and encounter a syntax error in Ubuntu 20.04 environment. Ubuntu uses dash to run shell scripts as default, and dash cannot interpret select .. in statement in init.sh.

$ ./init.sh
./init.sh: 48: Syntax error: "do" unexpected (expecting ";;")

So, I think specifying the interpreter by sheabang enable to support almost all environments.

hmsk commented 3 years ago

Thanks! That makes sense :)