mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 07:26:25 +00:00
main: use awk to trim whitespace
This commit is contained in:
parent
2be8c5b7f9
commit
55d6336eea
1 changed files with 1 additions and 1 deletions
2
main.sh
2
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
|
||||
|
|
Loading…
Reference in a new issue