From 1f4f9a85b1ea3e2cd52513923dba78fe2d6e2878 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 25 May 2019 08:11:55 +0200 Subject: [PATCH] Make security updates scripts ignore testing repos by default. Add 'true' as first argument to enable testing repos again. --- scripts/security-updates-check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/security-updates-check.sh b/scripts/security-updates-check.sh index f150216..afa6ca8 100755 --- a/scripts/security-updates-check.sh +++ b/scripts/security-updates-check.sh @@ -1,7 +1,12 @@ #!/bin/sh -echo "hi" UPDATES=$(arch-audit --upgradable | sed "{s/\n/
/g}") + +if test "$1" != "true" +then + UPDATES=$(echo -e "$UPDATES" | grep -v "testing repos\!") +fi + echo $UPDATES if [ ! -z "$UPDATES" ]; then