Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix bunch of typo and copy/paste mistakes. Remove redundant comments
Alex Kozlov committed 13 years ago
commit 4ea7a487f70a10280c42090fd96750edeca438e4
parent ea4b76e
4 files changed +11 -14
modified scripts/periodic/400.status-pkg
@@ -9,7 +9,7 @@ if [ -r /etc/defaults/periodic.conf ]; then
fi

case "$weekly_status_pkg_enable" in
-
    [Yy][Ee][Ss])
+
	[Yy][Ee][Ss])
	pkgcmd=/usr/local/sbin/pkg

	echo
@@ -25,11 +25,11 @@ case "$weekly_status_pkg_enable" in
			tee /dev/stderr |
			wc -l)
		[ $rc -gt 1 ] && rc=1
-
		;;
-
		*)
-
		rc=0
	fi
	;;
+
	*)
+
	rc=0
+
	;;
esac

exit $rc
modified scripts/periodic/410.pkg-audit
@@ -31,8 +31,6 @@
# $FreeBSD$
#

-
# If there is a global system configuration file, suck it in.
-
#
if [ -r /etc/defaults/periodic.conf ]; then
    . /etc/defaults/periodic.conf
    source_periodic_confs
@@ -67,11 +65,11 @@ case "${daily_status_security_pkgaudit_enable:-YES}" in
		if [ $rc -ne 0 -o \
			$(( 86400 \* "${daily_status_security_pkgaudit_expiry:-2}" )) \
			-le $(( ${now} - ${then} + 600 )) ]; then
-
			${pkgcmd} audit -Fq || { rc=$?; [ $rc -lt 3 ] && rc=3 }
+
			${pkgcmd} audit -Fq || { rc=$?; [ $rc -lt 3 ] && rc=3; }
		else
-
			echo -n 'Database fetched: ';
+
			echo -n 'Database fetched: '
			date -r "${then}" || rc=3
-
			${pkgcmd} audit || { rc=$?; [ $rc -lt 3 ] && rc=3 }
+
			${pkgcmd} audit || { rc=$?; [ $rc -lt 3 ] && rc=3; }
		fi
	fi
	;;
modified scripts/periodic/411.pkg-backup
@@ -1,10 +1,8 @@
-
#!/bin/sh
+
#!/bin/sh -
#
# $FreeBSD$
#

-
# If there is a global system configuration file, suck it in.
-
#
if [ -r /etc/defaults/periodic.conf ]; then
	. /etc/defaults/periodic.conf
	source_periodic_confs
@@ -44,6 +42,7 @@ case "${daily_backup_pkgng_enable:-YES}" in
			rc=3
		fi
	fi
+
	;;
esac

exit $rc
modified scripts/periodic/490.status-pkg-changes
@@ -27,8 +27,8 @@ case "$daily_status_pkg_changes_enable" in

		cmp -sz $bak/pkg.bak $bak/pkg.bak2
		if [ $? -eq 1 ]; then
-
			diff -U 0 $bak/pkg.bak2 $bak/pkg.bak \
-
			| grep '^[-+][^-+]' | sort -k 1.2
+
			diff -U 0 $bak/pkg.bak2 $bak/pkg.bak | \
+
			grep '^[-+][^-+]' | sort -k 1.2
		fi
	fi
	;;