diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-02-09 22:17:02 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-02-09 22:41:20 -0500 |
commit | ca3e04971996ebe2eebf88775e96bbf547aa0abe (patch) | |
tree | 636fef610ca90f2f9858af3ab455b2453add3753 /.config/login.d | |
parent | a6fe4bac238a28521aa1a4fec3f5c690eab9eae3 (diff) |
path.sh, config-path: don't rely on external programs (sed)
Diffstat (limited to '.config/login.d')
-rw-r--r-- | .config/login.d/00_path.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh index a45f8fd..f4ca3a6 100644 --- a/.config/login.d/00_path.sh +++ b/.config/login.d/00_path.sh @@ -1,9 +1,7 @@ -#!/bin/sh - 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 "$("$config_path" | sed 's/^/export /')" +eval "$(IFS=$'\n'; lines=($("$config_path")); printf -- 'export %s\n' "${lines[@]}")" |