From cd0db89e0a8eb389a305001171f6a835d3caa6fb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 26 Jan 2023 16:17:50 +0100 Subject: shorten long command lines --- roles/snap/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roles/snap') diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 755a695..f3be9ba 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -9,7 +9,11 @@ failed_when: false - name: All changes in /etc are snap changes? - shell: git status --porcelain=v1 | cut -c 4- | grep -G -v '^systemd/system/' | grep -G -v '/snap\.\|snap-' + shell: | + git status --porcelain=v1 \ + | cut -c 4- \ + | grep -G -v '^systemd/system/' \ + | grep -G -v '/snap\.\|snap-' args: chdir: /etc register: only_snap -- cgit v1.2.3