diff options
author | Azure Zanculmarktum <zanculmarktum@gmail.com> | 2017-05-21 09:51:38 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-27 07:29:24 +0700 |
commit | 498ee552f10788baeeeacf6026964f350d8e85eb (patch) | |
tree | d161d517e1cb28e43740d6de02966039af5d68f0 /desktop/arc-icon-theme/doinst.sh | |
parent | 2d831a54cdbd7c735609dd947331b5b8a0631dd4 (diff) |
desktop/arc-icon-theme: Added (Arc icon theme).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/arc-icon-theme/doinst.sh')
-rw-r--r-- | desktop/arc-icon-theme/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/arc-icon-theme/doinst.sh b/desktop/arc-icon-theme/doinst.sh new file mode 100644 index 0000000000000..61c1fa270f03b --- /dev/null +++ b/desktop/arc-icon-theme/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/icons/Arc/index.theme.new |