Multilib command only works when written oneline

This commit is contained in:
flyingscorpio@arch-desktop 2021-09-19 09:41:50 +02:00
parent 4f8d89d011
commit ae9f014a08

View file

@ -497,9 +497,7 @@ gaming:
command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup
condition: "[ ! -e /etc/pacman.conf.backup ]"
- run:
- LINESTART=$(grep -n '\[multilib\]' /etc/pacman.conf | cut -d: -f1 | head -n1);
LINEEND=$((LINESTART+1));
sudo sed -i "${LINESTART},${LINEEND} s/^#//" /etc/pacman.conf
- 'LINESTART=$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d: -f1 | head -n1); LINEEND=$((LINESTART+1)); sudo sed -i "${LINESTART},${LINEEND} s/^#//" /etc/pacman.conf'
- install:
- wine-staging
- winetricks