in sh, equal compare is really = for strings, not ==

This commit is contained in:
Love Hornquist Astrand
2009-12-14 18:25:04 -08:00
parent a740ee89bc
commit baf9c1c85b

View File

@@ -175,11 +175,11 @@ ${context} --no-dns-canon --name-type=krb5-principal-name host/lucid || \
echo "======test context building"
for mech in krb5 krb5iov spnego spnegoiov; do
if [ "$mech" == "krb5iov" ] ; then
if [ "$mech" = "krb5iov" ] ; then
mech="krb5"
iov="--iov"
fi
if [ "$mech" == "spnegoiov" ] ; then
if [ "$mech" = "spnegoiov" ] ; then
mech="spnego"
iov="--iov"
fi
@@ -215,11 +215,11 @@ done
echo "======dce-style"
for mech in krb5 krb5iov spnego; do
iov=""
if [ "$mech" == "krb5iov" ] ; then
if [ "$mech" = "krb5iov" ] ; then
mech="krb5"
iov="--iov"
fi
if [ "$mech" == "spnegoiov" ] ; then
if [ "$mech" = "spnegoiov" ] ; then
mech="spnego"
iov="--iov"
fi