diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2019-06-23 16:19:33 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-06-29 08:17:54 +0700 |
commit | 43721ccb6190543589123863ebe5fc4d4715a3de (patch) | |
tree | e5ad4aeff132637a68f3cefb33ba8fa8c1e43f03 /development/eclipse-cpp/doinst.sh | |
parent | 3d32d7ea5a5bc42ae8615182aef42df1c177f337 (diff) |
development/eclipse-cpp: Updated for version 4.12.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/eclipse-cpp/doinst.sh')
-rw-r--r-- | development/eclipse-cpp/doinst.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/development/eclipse-cpp/doinst.sh b/development/eclipse-cpp/doinst.sh index dfdd71579c49d..13e5ccb545bb4 100644 --- a/development/eclipse-cpp/doinst.sh +++ b/development/eclipse-cpp/doinst.sh @@ -1,14 +1,11 @@ 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 + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then rm $NEW fi - # Otherwise, we leave the .new copy for the admin to consider... } if [ -x /usr/bin/update-desktop-database ]; then |