aboutsummaryrefslogtreecommitdiff
path: root/auto-void-packages/who-needs-update.sh
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-05-29 08:55:20 +0200
committerclyhtsuriva <aimeric@adjutor.xyz>2025-05-29 08:55:20 +0200
commitaea979a49280a58000b6127598bd31660e72687c (patch)
tree2c5f5843aa1c20237c11b0333fdaeec760d3b11c /auto-void-packages/who-needs-update.sh
parente6d698ca7a93e8db0e91a7dcab61f47bbf093c10 (diff)
who-needs-update: skips commented packagesHEADmaster
Diffstat (limited to 'auto-void-packages/who-needs-update.sh')
-rwxr-xr-xauto-void-packages/who-needs-update.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto-void-packages/who-needs-update.sh b/auto-void-packages/who-needs-update.sh
index e01af13..e798847 100755
--- a/auto-void-packages/who-needs-update.sh
+++ b/auto-void-packages/who-needs-update.sh
@@ -38,6 +38,10 @@ VOID_UPDATES=$(curl --silent "$VOID_UPDATES_URL")
# v for needing one
while read -r PKG;
do
+ # checks if there's a # at the beginning of the line
+ # if so, skip the current iteration
+ echo "$PKG" | grep -q '^#' && continue
+
printf_magenta "$PKG"
UPDATES=$(echo "$VOID_UPDATES" | grep -e "^$PKG ")
if [ -z "$UPDATES" ];