1// Step 1 - Permissions
2$ chmod u+x ./cmd1.sh
3// Step 2 - Shebang (top of file cmd1.sh)
4$ #!/usr/bin/env bash
5// Step 3 - Config
6"scripts": {
7 "cmd1": "bash ./cmd1.sh"
8}
9// Step 4 - Run
10$ yarn/npm run cmd1
1include
2#!/bin/bash (1st line inside yourfile.sh)
3
4to run
5./yourfile.sh
6
7if you do not include that line
8bash yourfile.sh