Make security updates scripts ignore testing repos by default. Add 'true' as first argument to enable testing repos again.
This commit is contained in:
parent
66cbd6d36e
commit
1f4f9a85b1
@ -1,7 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hi"
|
|
||||||
|
|
||||||
UPDATES=$(arch-audit --upgradable | sed "{s/\n/<br>/g}")
|
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
|
echo $UPDATES
|
||||||
|
|
||||||
if [ ! -z "$UPDATES" ]; then
|
if [ ! -z "$UPDATES" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user