diff options
author | Simon Rettberg | 2021-02-09 17:39:17 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-02-09 17:39:17 +0100 |
commit | 8a7ca030b731e308e4a2516c72efa90bd41d4bdf (patch) | |
tree | e3f51dfb7b3d435fc9ec1f36463cf23987300807 | |
parent | [cert] New module for doing stuff with certificates (diff) | |
download | slx-tools-8a7ca030b731e308e4a2516c72efa90bd41d4bdf.tar.gz slx-tools-8a7ca030b731e308e4a2516c72efa90bd41d4bdf.tar.xz slx-tools-8a7ca030b731e308e4a2516c72efa90bd41d4bdf.zip |
Remember if we were sourced and don't do it again
Sourcing slx-tools again would overwrite all already pulled in functions
with their respective stubs again, so prevent that from happening.
-rw-r--r-- | slx-tools.template | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slx-tools.template b/slx-tools.template index 7adf6c0..35dbb4d 100644 --- a/slx-tools.template +++ b/slx-tools.template @@ -3,6 +3,9 @@ # Collection of small ash functions utilized in various scripts. ################################################################################ +[ -n "$slx_tools_SOURCED" ] && return 0 +slx_tools_SOURCED=1 + case "$PATH" in *opt/openslx*) ;; *) export PATH="$PATH:/opt/openslx/bin:/opt/openslx/sbin" ;; |