mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-04-01 14:10:36 +00:00
Prefer source
over .
for readability
This commit is contained in:
parent
6b8caf9e98
commit
89a260e2cc
6
FAQ.md
6
FAQ.md
@ -28,15 +28,15 @@ You can incorporate BASH3 Boilerplate into your project in one of two ways:
|
||||
|
||||
Once the `main.sh` has been tailor-made for your project you could either append your own script in the same file, or source it:
|
||||
|
||||
1. Copy [main.sh](https://github.com/kvz/bash3boilerplate/blob/master/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.
|
||||
1. Copy [main.sh](https://github.com/kvz/bash3boilerplate/blob/master/main.sh) into the same directory as your script and then edit and embed it into your script using Bash's `source` include feature, e.g.
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
. main.sh
|
||||
source main.sh
|
||||
```
|
||||
1. Source [main.sh](https://github.com/kvz/bash3boilerplate/blob/master/main.sh) in your script or at the command line
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
. main.sh
|
||||
source main.sh
|
||||
```
|
||||
|
||||
## How do I add a command-line flag?
|
||||
|
Loading…
x
Reference in New Issue
Block a user