Commit 9fb4f757 authored by Niels Möller's avatar Niels Möller
Browse files

Don't use &>-redirects, as /bin/sh doesn't

understand that. Noticed by Timshell Knoll.

Rev: src/lsh-authorize:1.9
parent 86822f18
......@@ -40,14 +40,13 @@ create_dir () {
create_dir $HOME/.lsh 0700
create_dir $HOME/.lsh/authorized_keys_sha1 0700
# FIXME: This test seems to not work properly with Solaris' /bin/sh.
if type sexp-conv &>/dev/null ; then
if type sexp-conv >/dev/null 2>&1 ; then
SEXP_CONV=sexp-conv
else
SEXP_CONV=./sexp-conv
fi
if type $SEXP_CONV &>/dev/null; then : ; else
if type $SEXP_CONV >/dev/null 2>&1 ; then : ; else
echo "Can't find the sexp-conv program"
exit 1
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