diff options
Diffstat (limited to 'system/pmount/doinst.sh')
-rw-r--r-- | system/pmount/doinst.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/system/pmount/doinst.sh b/system/pmount/doinst.sh index e7c14965b1..3b82b97e99 100644 --- a/system/pmount/doinst.sh +++ b/system/pmount/doinst.sh @@ -1,10 +1,12 @@ +#!/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 + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy rm $NEW fi |