From 1eb4064b3105895c8275ea14670757dbae1be5b8 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 15:46:19 -0500 Subject: [PATCH] u --- scripts/99_software.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index 16486ad..3b0a11a 100644 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -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"