Fix multilib setting

This commit is contained in:
flyingscorpio@arch-desktop 2021-09-19 09:28:04 +02:00
parent f21c082f2a
commit 4f8d89d011

View file

@ -497,7 +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);
- 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: