This commit is contained in:
tuxwarrior
2024-05-01 15:44:48 -05:00
parent 14a2b2e00d
commit 8fcc2b5ef1
2 changed files with 4 additions and 2 deletions

View File

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