u
This commit is contained in:
@@ -64,14 +64,15 @@ if [ ${operation} == "update" ] ; then
|
||||
fi
|
||||
|
||||
# https://stackoverflow.com/questions/30988586/creating-an-array-from-a-text-file-in-bash
|
||||
sed '/^[[:blank:]]*#/d;s/#.*//' ${trg_file}
|
||||
|
||||
mapfile -t packages < ${trg_file}
|
||||
|
||||
installed=$(pacman -Qq)
|
||||
list=()
|
||||
for x in ${packages[@]}
|
||||
do
|
||||
echo "..."
|
||||
echo sed '/^[[:blank:]]*#/d;s/#.*//' ${x}
|
||||
|
||||
if [[ $installed == *$x* ]]
|
||||
then
|
||||
echo "Skipping (1) $x"
|
||||
|
||||
Reference in New Issue
Block a user