From 19a7756b87dfa7e956831a4d45d6e81ca74b27a0 Mon Sep 17 00:00:00 2001 From: Maoyin Sun Date: Mon, 26 Aug 2024 20:04:07 +0200 Subject: [PATCH] Removing `funciton` and `-r` from `declare`#32 --- helpers/load_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/load_config.sh b/helpers/load_config.sh index 4c775ff..3bf52d4 100644 --- a/helpers/load_config.sh +++ b/helpers/load_config.sh @@ -4,7 +4,7 @@ # Will not overwrite existing variables. # Will read from $HOME/.ellrc, $PWD/.ellrc, and $ELL_CONFIG -function load_config() { +load_config() { logging_debug "Storing current environment"; current_env=$(declare -p -x | sed -e 's/declare -x /export /'); set -o allexport; @@ -34,4 +34,4 @@ function load_config() { set +o allexport; } -export -f load_config; \ No newline at end of file +export load_config; \ No newline at end of file