You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitlab.com/the-common/bash-script-templates/-/pipelines) [](https://github.com/the-common/bash-script-templates/actions/workflows/check-potential-problems.yml) [](https://pre-commit.com/) [](https://api.reuse.software/info/gitlab.com/the-common/bash-script-templates)
7
7
8
+
## Flavors
9
+
10
+
This product provides several _flavors_ of the Bash script template to satisfy different needs:
11
+
12
+
### [PRIMITIVE](primitive.sh)
13
+
14
+
The considered to be the bare-minimum for bash scripting:
15
+
16
+
* Shebang/Hashbang file header
17
+
* Script description and copyright declaration header
18
+
* Defensive interpreter behavior settings
19
+
20
+
### [BASIC](basic.sh)
21
+
22
+
Inherited from the [PRIMITIVE](#primitive) flavor, but with the following additions:
23
+
24
+
* Runtime dependency detection(check whether all the required commands are available from the command search PATHs
25
+
* The following convenience variable definitions:
26
+
+`script`: The absolute path of the shell script
27
+
+`script_dir`: The absolute path of the directory that contains the shell script
28
+
+`script_filename`: The full filename of the shell script
29
+
+`script_name`: The name of the shellscript, excluding the filename suffixes
30
+
8
31
## References
9
32
10
33
*[The Common / The Common GNU Bash Shell Script Templates · GitLab](https://gitlab.com/the-common/bash-script-templates)
0 commit comments