Removed IFS on virtual file parsing
After issue #121, I removed the IFS on space to make the parsing of virtual more robust
This commit is contained in:
parent
996af0e15f
commit
eb52dc66f9
|
@ -44,7 +44,7 @@ fi
|
||||||
if [ -f /tmp/postfix/virtual ]; then
|
if [ -f /tmp/postfix/virtual ]; then
|
||||||
# Copying virtual file
|
# Copying virtual file
|
||||||
cp /tmp/postfix/virtual /etc/postfix/virtual
|
cp /tmp/postfix/virtual /etc/postfix/virtual
|
||||||
while IFS=$' ' read from to
|
while read from to
|
||||||
do
|
do
|
||||||
# Setting variables for better readability
|
# Setting variables for better readability
|
||||||
domain=$(echo ${from} | cut -d @ -f2)
|
domain=$(echo ${from} | cut -d @ -f2)
|
||||||
|
|
Loading…
Reference in New Issue