u
This commit is contained in:
@@ -64,7 +64,7 @@ if [ ${operation} == "update" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# https://stackoverflow.com/questions/30988586/creating-an-array-from-a-text-file-in-bash
|
# https://stackoverflow.com/questions/30988586/creating-an-array-from-a-text-file-in-bash
|
||||||
mapfile -t packages < ${trg_file}
|
mapfile -t packages < grep -o '^[^#]*' ${trg_file}
|
||||||
|
|
||||||
installed=$(pacman -Qq)
|
installed=$(pacman -Qq)
|
||||||
list=()
|
list=()
|
||||||
@@ -77,7 +77,7 @@ if [ ${operation} == "update" ] ; then
|
|||||||
then
|
then
|
||||||
if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]]
|
if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]]
|
||||||
then
|
then
|
||||||
grep -o '^[^#]*' ${x} > x
|
#grep -o '^[^#]*' ${x} > x
|
||||||
echo "Adding $x to list"
|
echo "Adding $x to list"
|
||||||
list+="$x "
|
list+="$x "
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user