diff options
author | Ryan Kavanagh <rak@rak.ac> | 2024-05-21 23:03:48 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2024-05-21 23:03:48 -0400 |
commit | 6e96177632c76eee65ce9fbbde6e6fd0a18dbb21 (patch) | |
tree | 8b8e934e239c4f9084c29af1080db9b1d7fa34e1 /dot_config/sh/01_environment.d | |
parent | rak-meta 0.8 (diff) | |
parent | drop rendundant check (diff) |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to '')
-rw-r--r-- | dot_config/sh/01_environment.d | 8 |
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 |