summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-02-09 17:39:17 +0100
committerSimon Rettberg2021-02-09 17:39:17 +0100
commit8a7ca030b731e308e4a2516c72efa90bd41d4bdf (patch)
treee3f51dfb7b3d435fc9ec1f36463cf23987300807
parent[cert] New module for doing stuff with certificates (diff)
downloadslx-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.template3
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" ;;