Fix issue with field separator in awk

This commit is contained in:
Petar Kapriš 2025-04-20 22:27:51 +02:00
parent 0f0c7eb44e
commit a94851a3ae

4
bs.sh
View file

@ -194,8 +194,8 @@ maininstallations() {
aurinstalled=$(pacman -Qqm)
# Field 1: install-type, Field 2: program, Field 3: comment
# Install pacman packages:
awk '$1 ~ /^$/ { print $2 }' | xargs pacman --noconfirm --needed -S </tmp/progs.csv
awk '$1 ~ /^A$/ { print $2 }' | xargs "$aurhelper" --noconfirm --needed -S </tmp/progs.csv
awk -F "," '$1 ~ /^$/ { print $2 }' | xargs pacman --noconfirm --needed -S </tmp/progs.csv
awk -F "," '$1 ~ /^A$/ { print $2 }' | xargs "$aurhelper" --noconfirm --needed -S </tmp/progs.csv
}
finalize() {