diff options
Diffstat (limited to 'source/a/acpid/doinst.sh')
-rw-r--r-- | source/a/acpid/doinst.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/a/acpid/doinst.sh b/source/a/acpid/doinst.sh index c090b9fe..dfc78d65 100644 --- a/source/a/acpid/doinst.sh +++ b/source/a/acpid/doinst.sh @@ -1,11 +1,11 @@ -#!/bin/sh config() { NEW="$1" - OLD="`dirname $NEW`/`basename $NEW .new`" + 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 + 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... |