Use the *much* more readable unified diff format.

This commit is contained in:
David E. O'Brien 1999-12-28 21:38:12 +00:00
parent 1752e66d49
commit 4b99719cb0
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
if cmp -s $bak/master.passwd.bak /etc/master.passwd; then :; else
echo "$host passwd diffs:"
diff $bak/master.passwd.bak /etc/master.passwd |\
diff -u $bak/master.passwd.bak /etc/master.passwd |\
sed 's/^\([<>] [^:]*\):[^:]*:/\1:(password):/'
mv $bak/master.passwd.bak $bak/master.passwd.bak2
cp -p /etc/master.passwd $bak/master.passwd.bak
@ -28,7 +28,7 @@ if [ -f /etc/master.passwd -o -f /etc/group ] ; then
if cmp -s $bak/group.bak /etc/group; then :; else
echo "$host group diffs:"
diff $bak/group.bak /etc/group
diff -u $bak/group.bak /etc/group
mv $bak/group.bak $bak/group.bak2
cp -p /etc/group $bak/group.bak
fi

View File

@ -15,7 +15,7 @@ if [ -f /etc/aliases ] ; then
if cmp -s $bak/aliases.bak /etc/aliases; then :; else
echo "$host aliases diffs:"
diff $bak/aliases.bak /etc/aliases
diff -u $bak/aliases.bak /etc/aliases
mv $bak/aliases.bak $bak/aliases.bak2
cp -p /etc/aliases $bak/aliases.bak
fi