From 51f9bbf69421283682ac0adfbb7d9a7c40494520 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 14:28:24 -0500 Subject: [PATCH] u --- scripts/99_software.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index e209c12..8be73d7 100644 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -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 < ${trg_file} + mapfile -t packages < grep -o '^[^#]*' ${trg_file} installed=$(pacman -Qq) list=() @@ -77,7 +77,7 @@ if [ ${operation} == "update" ] ; then then if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]] then - grep -o '^[^#]*' ${x} > x + #grep -o '^[^#]*' ${x} > x echo "Adding $x to list" list+="$x " else