Skip to content

Commit 87e5e7b

Browse files
Add include script help
1 parent dfe36dd commit 87e5e7b

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ To download this file:
1616
curl -O "https://raw.githubusercontent.com/SixArm/posix-shell-script-kit/main/posix-shell-script-kit"
1717
```
1818

19+
To include this file in your own script, in the same directory:
20+
21+
```sh
22+
# Include https://github.com/SixArm/posix-shell-script-kit
23+
. "$(dirname "$(readlink -f "$0")")/posix-shell-script-kit"
24+
```
25+
1926
## Tracking
2027

2128
* Package: posix-shell-script-kit
22-
* Version: 11.0.4
29+
* Version: 11.0.5
2330
* Created: 2017-08-22T00:00:00Z
24-
* Updated: 2023-03-22T15:32:10Z
31+
* Updated: 2023-03-24T13:23:36Z
2532
* Website: https://github.com/sixarm/posix-shell-script-kit
2633
* License: GPL-2.0 or GPL-3.0 or contact us for more
2734
* Contact: Joel Parker Henderson (joel@sixarm.com)

doc/exit-codes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The exit codes in our list can be useful for a variety of needs, such as:
3535

3636
* Authentication issues: `exit $EXIT_NOUSER`
3737

38-
* Authoriziation issues: `exit $EXIT_NOPERM`
38+
* Authorization issues: `exit $EXIT_NOPERM`
3939

4040
* A user chooses cancel: `exit $EXIT_QUIT`
4141

posix-shell-script-kit

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,19 @@
1818
# curl -O "https://raw.githubusercontent.com/SixArm/posix-shell-script-kit/main/posix-shell-script-kit"
1919
# ```
2020
#
21+
# To include this file in your own script, in the same directory:
22+
#
23+
# ```sh
24+
# # Include https://github.com/SixArm/posix-shell-script-kit
25+
# . "$(dirname "$(readlink -f "$0")")/posix-shell-script-kit"
26+
# ```
27+
#
2128
# ## Tracking
2229
#
2330
# * Package: posix-shell-script-kit
24-
# * Version: 11.0.4
31+
# * Version: 11.0.5
2532
# * Created: 2017-08-22T00:00:00Z
26-
# * Updated: 2023-03-22T15:32:10Z
33+
# * Updated: 2023-03-24T13:23:36Z
2734
# * License: GPL-2.0 or GPL-3.0 or contact us for more
2835
# * Website: https://github.com/sixarm/posix-shell-script-kit
2936
# * Contact: Joel Parker Henderson (joel@sixarm.com)
@@ -67,7 +74,7 @@
6774
#
6875
# * Authentication issues: exit $EXIT_NOUSER
6976
#
70-
# * Authoriziation issues: exit $EXIT_NOPERM
77+
# * Authorization issues: exit $EXIT_NOPERM
7178
#
7279
# * A user chooses cancel: exit $EXIT_QUIT
7380
#

0 commit comments

Comments
 (0)