mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-25 23:52:51 +02:00
dsv/dsv (setup): remove trailing whitespace from lines from bookshelf file
This commit is contained in:
parent
560bf9d64a
commit
24160ddd57
2
dsv/dsv
2
dsv/dsv
@ -124,7 +124,7 @@ setup()
|
||||
while read line; do
|
||||
[ "$line" = "${line###}" ] || continue
|
||||
tmp=`echo "$line" | awk '/^[^\t ]/ { print $1 }'`
|
||||
tail=`echo "$line" | sed 's/^[^\t ]*[\t ]*//'`
|
||||
tail=`echo "$line" | sed 's/^[^\t ]*[\t ]*//;s/[\t ]*$//'`
|
||||
if [ -z "$tmp" ]; then
|
||||
[ -z "$tail" ] || value="$value $tail"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user