diff options
author | Guillermo Bonvehi | 2010-05-11 19:46:35 +0200 |
---|---|---|
committer | Robby Workman | 2010-05-11 19:46:35 +0200 |
commit | e71b7af2e0b90ef7159ffc1aed291c2d808c8db6 (patch) | |
tree | 6e88cb390a3a7afdc96ec4c00a21c2acdd1cfe00 /system/pmount/doinst.sh | |
parent | 8a2ea2c98be197f14d1e92f2ab58a7cfb4b27106 (diff) | |
download | slackbuilds-e71b7af2e0b90ef7159ffc1aed291c2d808c8db6.tar.gz |
system/pmount: Updated for version 0.9.16
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 |