summaryrefslogtreecommitdiffstats
path: root/desktop/lxpanel/doinst.sh
diff options
context:
space:
mode:
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 b0778a9cb9..ac258d3ee7 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