diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:02:30 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:02:30 -0500 |
commit | 5699669e5d37bcfd7bd68d2e0b906e518b893f56 (patch) | |
tree | a9b13b8e092de9696909f1d7cff0cd32c59f64ea /.config/login.d | |
parent | 42fdef6bf820b9a37b9b89017afaf3b3cdd86c4a (diff) |
login.d/00_path.sh: don't leak temporary variables
Diffstat (limited to '.config/login.d')
-rw-r--r-- | .config/login.d/00_path.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh index 2d5f4a5..ae2e8db 100644 --- a/.config/login.d/00_path.sh +++ b/.config/login.d/00_path.sh @@ -1,8 +1,12 @@ #!/hint/sh +eval "$( if type config-path &>/dev/null; then config_path=config-path else # Bootstrap finding config-path config_path="$HOME/.local/bin/config-path" fi -eval "$(IFS=$'\n'; lines=($("$config_path")); printf -- 'export %s\n' "${lines[@]}")" +IFS=$'\n' +lines=($("$config_path")) +printf -- 'export %s\n' "${lines[@]}" +)" |