From 14a2b2e00d828edc5dfc17ddcc177490d5ce068f Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 14:30:17 -0500 Subject: [PATCH] u --- scripts/99_software.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index 8be73d7..d14425e 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 < grep -o '^[^#]*' ${trg_file} + mapfile -t packages < sed '/^[[:blank:]]*#/d;s/#.*//' ${trg_file} installed=$(pacman -Qq) list=()