This commit is contained in:
tuxwarrior
2024-05-01 14:30:17 -05:00
parent 51f9bbf694
commit 14a2b2e00d

View File

@@ -64,7 +64,7 @@ if [ ${operation} == "update" ] ; then
fi
# https://stackoverflow.com/questions/30988586/creating-an-array-from-a-text-file-in-bash
mapfile -t packages < grep -o '^[^#]*' ${trg_file}
mapfile -t packages < sed '/^[[:blank:]]*#/d;s/#.*//' ${trg_file}
installed=$(pacman -Qq)
list=()