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/postrm | |
parent | 9a823b8884886a2da8f711f5c29b019f8cceba23 (diff) | |
download | scm-2275400e1b96f5919cae8766f6fafd50b568feb6.tar.gz scm-2275400e1b96f5919cae8766f6fafd50b568feb6.zip |
rewrite postrm and prerm with case syntax
Diffstat (limited to 'debian/postrm')
-rw-r--r-- | debian/postrm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/debian/postrm b/debian/postrm index 70022ef..24bd851 100644 --- a/debian/postrm +++ b/debian/postrm @@ -2,8 +2,15 @@ set -e -if [ "$1" = purge ] && [ -e /usr/lib/scm/implcat ] && [ -e /usr/lib/scm/slibcat ]; then - rm -f /usr/lib/scm/implcat /usr/lib/scm/slibcat -fi +case "$1" in + purge) + if [ -e /usr/lib/scm/implcat ]; then + rm -f /usr/lib/scm/implcat + fi + if [ -e /usr/lib/scm/slibcat ]; then + rm -f /usr/lib/scm/slibcat + fi + ;; +esac #DEBHELPER# |