main: use awk to trim whitespace

This commit is contained in:
Dawid Dziurla 2020-04-07 00:57:21 +02:00 committed by GitHub
parent 2be8c5b7f9
commit 55d6336eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ if test -n "$directory"; then
fi fi
if test -n "$options"; then if test -n "$options"; then
options="$(echo "$options" | tr '\n' ' ' | xargs)" options="$(echo "$options" | tr '\n' ' ' | awk '{$1=$1};1')"
fi fi
if test -n "$inventory"; then if test -n "$inventory"; then