From 26b26706023f9b209328ba2203c283b73011e224 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 22 Jul 2023 11:27:54 -0700 Subject: [PATCH] added a flatg to auto-reload the newly compiled script --- 0-builder | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/0-builder b/0-builder index 78e9974..8aa183b 100644 --- a/0-builder +++ b/0-builder @@ -69,7 +69,11 @@ echo "##################" >> $COMPILED_SRC echo "# Reloader Script" >> $COMPILED_SRC echo """################## function __rebuild_bashrcd() { - bash """$SELF_SRC""" + bash \""""$SELF_SRC"""\" + if [[ \$? -eq 0 && \"\${1}\" == '-a' ]]; then + echo "Automatically loading compiled script." + source \""""$(readlink -f "$COMPILED_SRC")"""\" + fi } """ >> $COMPILED_SRC