mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-19 06:37:51 +00:00
More portable shebang
This commit is contained in:
parent
0db28b0eec
commit
87017c728f
2
FAQ.md
2
FAQ.md
@ -22,7 +22,7 @@ A 'cli' is a [command-line interface](https://en.wikipedia.org/wiki/Command-line
|
|||||||
You can incorporate bash3boilerplate into your project one of three ways:
|
You can incorporate bash3boilerplate into your project one of three ways:
|
||||||
1. Copy the desired portions of [main.sh](./main.sh) into your own script.
|
1. Copy the desired portions of [main.sh](./main.sh) into your own script.
|
||||||
2. Copy [main.sh](./main.sh) into the same directory as your script and then edit and embed it into your script using bash's dot (".") include feature, e.g.
|
2. Copy [main.sh](./main.sh) into the same directory as your script and then edit and embed it into your script using bash's dot (".") include feature, e.g.
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
. main.sh
|
. main.sh
|
||||||
3. Source [main.sh](./main.sh) in your script or at the command line
|
3. Source [main.sh](./main.sh) in your script or at the command line
|
||||||
source main.sh
|
source main.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user