[Pkg-zsh-commits] [zsh] 01/03: zsh-beta.postrm: Unregister /etc/shells entry on removal (Closes: #724251)

Axel Beckert abe at deuxchevaux.org
Fri Nov 8 01:30:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit dcc18dd5494b5d02d3c88fd3bce7521284f84ab2
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Fri Nov 8 01:08:16 2013 +0100

    zsh-beta.postrm: Unregister /etc/shells entry on removal (Closes: #724251)
---
 debian/zsh-beta.postrm |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/zsh-beta.postrm b/debian/zsh-beta.postrm
index d97736b..95dbe4f 100644
--- a/debian/zsh-beta.postrm
+++ b/debian/zsh-beta.postrm
@@ -2,8 +2,13 @@
 
 set -e
 
-if [ "$1" = "purge" ]; then
-    rmdir -p /usr/local/share/zsh-beta/site-functions || true
-fi
+case "$1" in
+    (purge)
+        rmdir -p /usr/local/share/zsh-beta/site-functions || true
+        ;;
+    (remove)
+        remove-shell /bin/zsh-beta
+        ;;
+esac
 
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list