utils: Fix old kinit detection, remove whitespace errors
authorKai Blin <kai@samba.org>
Wed, 9 Sep 2009 07:57:39 +0000 (09:57 +0200)
committerKai Blin <kai@samba.org>
Wed, 9 Sep 2009 07:57:39 +0000 (09:57 +0200)
utils.sh

index f4876375cee9302f9c7880cc1a39bb348a40127f..0753e2e3a329384be38914e9245d86a2c4dae004 100644 (file)
--- a/utils.sh
+++ b/utils.sh
@@ -23,9 +23,9 @@ iterations_per_minute () {
        START_TIME=$1
        STOP_TIME=$2
        TOTAL_RUNS=$3
-       
+
        TOTAL_TIME=$( total_time $START_TIME $STOP_TIME )
-       
+
        ITER_PER_MIN=$( echo "scale=2; 60 * $TOTAL_RUNS / $TOTAL_TIME" | ${BC} )
        echo "$ITER_PER_MIN"
 }
@@ -62,7 +62,7 @@ restore_krb_env () {
 }
 
 setup_kinit () {
-       ${KINIT} --invalid 2>&1 | grep -q -- "${KINIT_PARAM_OLD}"
+       ${KINIT} --invalid 2>&1 | grep -q "password-file"
        if [ $? -eq 0 ]; then
                KINIT="${KINIT} ${KINIT_PARAM_OLD}"
        else