aboutsummaryrefslogtreecommitdiff
path: root/desktop/lxpanel/doinst.sh
diff options
context:
space:
mode:
authorMichael Wagner <lapinours@web.de>2010-09-20 20:25:50 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-09-21 22:09:43 -0500
commit45004f6b09a941c80958701e2a1f03ab434e183f (patch)
tree7ee7cc2cd5304b0db441c176fba8ae609695e3c4 /desktop/lxpanel/doinst.sh
parent8b25516d25a9922407e92eb47a4def235f7591fd (diff)
desktop/lxpanel: Updated for version 0.5.6.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/lxpanel/doinst.sh')
-rw-r--r--desktop/lxpanel/doinst.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/desktop/lxpanel/doinst.sh b/desktop/lxpanel/doinst.sh
index b0778a9cb95a4..ac258d3ee762a 100644
--- a/desktop/lxpanel/doinst.sh
+++ b/desktop/lxpanel/doinst.sh
@@ -1,16 +1,15 @@
-#!/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 usr/share/lxpanel/profile/default/panels/panel.new
-config usr/share/lxpanel/profile/default/config.new
+config usr/share/lxpanel/profile/default/panels/panel.new
+config usr/share/lxpanel/profile/default/config.new