mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-11 12:15:47 +00:00
Detect if the scripts are not sourced and print help.
This commit is contained in:
parent
5b8a75b75c
commit
dc0be5c2a1
4 changed files with 20 additions and 0 deletions
|
|
@ -1,2 +1,7 @@
|
|||
if [ "${BASH_SOURCE-}" = "$0" ]; then
|
||||
echo -e "You must source this script:\n\tsource $0" >&2
|
||||
exit 33
|
||||
fi
|
||||
|
||||
TIME_STYLE=long-iso
|
||||
export TIME_STYLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue