diff options
author | Dave Woodfall <dave@tty1.uk> | 2019-04-15 17:55:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-20 08:20:55 +0700 |
commit | 718e23b5c6f511431a8a72a31eb7f27af71b0833 (patch) | |
tree | 5c76d4009719352f0075320f86bac1188dc7cf92 /desktop/dwm/doinst.sh | |
parent | f53d530a7a105a43801b83f4eb2866a5ee486950 (diff) |
desktop/dwm: Add new options to slackbuild. Fix 6.2 update patch.
Diffstat (limited to 'desktop/dwm/doinst.sh')
-rw-r--r-- | desktop/dwm/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/dwm/doinst.sh b/desktop/dwm/doinst.sh new file mode 100644 index 0000000000000..7d86f3bb33962 --- /dev/null +++ b/desktop/dwm/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + 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 + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config usr/share/rofi/themes/dwm.rasi.new |