mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-01-10 13:31:41 -07:00
main: use awk to trim whitespace
This commit is contained in:
2
main.sh
2
main.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user