diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-08-01 23:47:30 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-08-02 00:09:46 -0700 |
commit | 2275400e1b96f5919cae8766f6fafd50b568feb6 (patch) | |
tree | ab183c793d7aabb286dbaf40b201b52bad30f1ca /debian/prerm | |
parent | 9a823b8884886a2da8f711f5c29b019f8cceba23 (diff) | |
download | scm-2275400e1b96f5919cae8766f6fafd50b568feb6.tar.gz scm-2275400e1b96f5919cae8766f6fafd50b568feb6.zip |
rewrite postrm and prerm with case syntax
Diffstat (limited to 'debian/prerm')
-rw-r--r-- | debian/prerm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/debian/prerm b/debian/prerm index fc8719b..e58c8a0 100644 --- a/debian/prerm +++ b/debian/prerm @@ -2,8 +2,12 @@ set -e -if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/scm ]; then - rm -f /usr/doc/scm -fi +case "$1" in + remove|upgrade) + # This is to ensure that "old" doc files (which might not be + # overwritten by new installs) get removed + rm -f /usr/doc/scm + ;; +esac #DEBHELPER# |