diff options
Diffstat (limited to 'source/ap/cdrtools/doinst.sh')
-rw-r--r-- | source/ap/cdrtools/doinst.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/ap/cdrtools/doinst.sh b/source/ap/cdrtools/doinst.sh index 78d62faa..8d3d5627 100644 --- a/source/ap/cdrtools/doinst.sh +++ b/source/ap/cdrtools/doinst.sh @@ -1,14 +1,13 @@ -#!/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... } config etc/default/cdrecord.new -config etc/default/rscsi.new + |