Commit 4afbabc4 authored by Thomas Lange's avatar Thomas Lange

use which instead of -x and full path

parent 5516609e
......@@ -22,11 +22,11 @@ case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
rm -f /usr/share/emacs/site-lisp/csh-mode.elc
if [ -x /usr/sbin/remove-shell ]; then
if which remove-shell; then
remove-shell /bin/tcsh /usr/bin/tcsh
fi
if [ -x /usr/bin/update-menus ]; then
if which update-menus; then
update-menus
fi
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment