[Pkg-zsh-commits] [zsh] 01/01: Only try to remove /etc/zsh-beta if it exists
Axel Beckert
abe at deuxchevaux.org
Fri Sep 20 18:47:08 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 e19ee43ae29e7c223c1c18d75ac9b7f02f4318e2
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Sep 20 20:45:41 2013 +0200
Only try to remove /etc/zsh-beta if it exists
Suppresses irrelevant error message "rmdir: failed to remove
/etc/zsh-beta: No such file or directory".
---
debian/zsh-beta.postinst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/zsh-beta.postinst b/debian/zsh-beta.postinst
index ad4ada5..bcb754b 100644
--- a/debian/zsh-beta.postinst
+++ b/debian/zsh-beta.postinst
@@ -19,7 +19,9 @@ esac
for conffile in zlogin zlogout zprofile zshenv zshrc; do
dpkg-maintscript-helper rm_conffile /etc/zsh-beta/$conffile 5 -- "$@"
done
-rmdir /etc/zsh-beta || true
+if [ -d /etc/zsh-beta ]; then
+ rmdir /etc/zsh-beta || true
+fi
update-alternatives --remove zsh-beta /usr/bin/zsh
update-alternatives --remove zsh-beta /bin/zsh4
--
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