aboutsummaryrefslogtreecommitdiff
path: root/dot_config/sh/01_environment.d
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/sh/01_environment.d')
-rw-r--r--dot_config/sh/01_environment.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/dot_config/sh/01_environment.d b/dot_config/sh/01_environment.d
index eea2917..b84226f 100644
--- a/dot_config/sh/01_environment.d
+++ b/dot_config/sh/01_environment.d
@@ -1,8 +1,8 @@
#!/bin/sh
-for f in ${HOME}/.config/environment.d/*; do
- . $f
- for VAR in $(sed -n '/^[^#]/ s/=.*//p' $f); do
- export $VAR
+for f in "${HOME}/.config/environment.d/"*; do
+ . "$f"
+ sed -n '/^[^#]/ s/=.*//p' "$f" | while read -r VAR; do
+ export "${VAR?}"
done
done