Commit 5516609e authored by Thomas Lange's avatar Thomas Lange

use which instead of -x and full path

parent 1189b936
......@@ -23,11 +23,11 @@ case "$1" in
--install /bin/csh csh /bin/tcsh 20 \
--slave /usr/share/man/man1/csh.1.gz csh.1.gz /usr/share/man/man1/tcsh.1.gz
if [ -x /usr/sbin/add-shell ]; then
if which add-shell >/dev/null; then
add-shell /bin/tcsh /usr/bin/tcsh
if [ -x /usr/bin/update-menus ]; then
if which update-menus; then
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