summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/deps.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index cf947a8..90cb98d 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -61,7 +61,8 @@ ob_parse_dep()
_obpd_dep="$(echo "${1}" | \
sed 's/\([(\[]\)/ \1/g;s/\([<>=][<>=]*\)/\1 /g')"
# Remove leading, trailing, and duplicate spaces.
- _obpd_dep="$(IFS=' ' echo ${_obpd_dep})"
+ _obpd_dep="$(echo "${_obpd_dep}" | \
+ sed 's/\t/ /g;s/^ *//;s/ *$//;s/ */ /g') "
else
_ob_return 125
return ${?}