From acdf635b48c1829bf76e747e58fec9266f0b9078 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@pinebookpro" Date: Wed, 28 Jul 2021 19:19:21 +0200 Subject: [PATCH] Rewrite OR command into yaml condition --- configs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs.yml b/configs.yml index f25b421..aad23a2 100644 --- a/configs.yml +++ b/configs.yml @@ -43,7 +43,8 @@ sudoers: pacman.conf: - run: - - "[ -e /etc/pacman.conf.backup ] || sudo cp /etc/pacman.conf /etc/pacman.conf.backup" + command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup + condition: "[ ! -e /etc/pacman.conf.backup ]" - run: - sudo sed -i 's/#HookDir/HookDir/' /etc/pacman.conf && sudo sed -i 's/#Color/Color/' /etc/pacman.conf && @@ -55,7 +56,8 @@ grub: - install: - grub-theme-vimix - run: - - "[ -e /etc/default/grub.backup ] || sudo cp /etc/default/grub /etc/default/grub.backup" + command: sudo cp /etc/default/grub /etc/default/grub.backup + condition: "[ ! -e /etc/default/grub.backup ]" - run: - sudo sed -i -E 's/^#?GRUB_DEFAULT.+/GRUB_DEFAULT=saved/' /etc/default/grub && sudo sed -i -E 's@^#?GRUB_THEME.+@GRUB_THEME="/usr/share/grub/themes/Vimix/theme.txt"@' /etc/default/grub &&