From 3f717ecb7e78e134d6e8177c63827de442c91a31 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 7 Apr 2020 00:06:51 +0200 Subject: [PATCH] main: trim whitespace in options --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index dfa72bb..4d9723c 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' ' ')" + options="$(echo "$options" | tr '\n' ' ' | xargs)" fi if test -n "$inventory"; then