From 55d6336eeae1c72d2ecd54f02100b26d8e73be7c Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 7 Apr 2020 00:57:21 +0200 Subject: [PATCH] main: use awk to trim whitespace --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index d735fc6..52e0273 100755 --- a/main.sh +++ b/main.sh @@ -32,7 +32,7 @@ if test -n "$directory"; then fi if test -n "$options"; then - options="$(echo "$options" | tr '\n' ' ' | xargs)" + options="$(echo "$options" | tr '\n' ' ' | awk '{$1=$1};1')" fi if test -n "$inventory"; then