Make security updates scripts ignore testing repos by default. Add 'true' as first argument to enable testing repos again.

This commit is contained in:
Alice Gaudon 2019-05-25 08:11:55 +02:00
parent 66cbd6d36e
commit 1f4f9a85b1

View File

@ -1,7 +1,12 @@
#!/bin/sh
echo "hi"
UPDATES=$(arch-audit --upgradable | sed "{s/\n/<br>/g}")
if test "$1" != "true"
then
UPDATES=$(echo -e "$UPDATES" | grep -v "testing repos\!")
fi
echo $UPDATES
if [ ! -z "$UPDATES" ]; then