Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac book cannot run .bat #2

Open
agadajerry opened this issue Jul 22, 2022 · 1 comment
Open

Mac book cannot run .bat #2

agadajerry opened this issue Jul 22, 2022 · 1 comment

Comments

@agadajerry
Copy link

I find it difficult to run .bat files on mac. What could be an approach to bash

@kingosoul
Copy link

Create run.sh with the following
#!/bin/bash
./tpp.sh
read -p "Enter Endpoint: " endp
read -p "Enter Charge Point ID: " cp
clear
node gir-ocppjs.js start_cp "$endp" "$cp"

Then create a tpp.sh in the same folder
#!/bin/bash
npm install

make both executable
chmod +x install.sh
chmod +x run.sh

Now type ./run.sh

and it should run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants