Lines 36-42
Link Here
|
36 |
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do |
36 |
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do |
37 |
for _port in ${_line%%:*}; do |
37 |
for _port in ${_line%%:*}; do |
38 |
if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then |
38 |
if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then |
39 |
echo ${_line#*:} | sed -E 's/([A-Za-z0-9_]+)(=([^|]+))?/\1=\3/g;s/!([A-Za-z0-9_]+)=([^|]+)?/.undef \1/g;s/ *\| */|/g;s/ /%/g' |
39 |
echo ${_line#*:} | sed -E 's/([A-Za-z0-9_\-]+\+?)(=([^|]+))?/\1=\3/g;s/!([A-Za-z0-9_]+)=([^|]+)?/.undef \1/g;s/ *\| */|/g;s/ /%/g' |
40 |
fi |
40 |
fi |
41 |
done |
41 |
done |
42 |
done |
42 |
done |