system/facter: Fix typo.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Thibaut Notteboom 2015-07-13 07:56:23 +07:00 committed by Robby Workman
parent fbdf9413ca
commit a287196125
2 changed files with 1 additions and 16 deletions

View File

@ -1,14 +0,0 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/facter.conf.new

View File

@ -69,7 +69,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
if [ "$ARCH" = "x86_64" ]; then
if [ "$ARCH" == "x86_64" ]; then
patch -p0 < $CWD/facter-lib64.patch
fi
@ -84,7 +84,6 @@ cd build
make
make install DESTDIR=$PKG
cd ..
#-DLIBDIR=lib${LIBDIRSUFFIX} \
mv $PKG/usr/share/man $PKG/usr/man