summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-12-02 10:18:39 +0100
committerBjoern Jacke <bj@sernet.de>2010-12-02 10:36:06 +0100
commite8f9ee64a71d788a8ed1e1d7d5715f248c4fa107 (patch)
treec2753a43450a958c78fcd27f3abceb66e8dadf01
parent9329d0a91ed07178bc9117a675a0e2a5cd99ae19 (diff)
downloadsamba-e8f9ee64a71d788a8ed1e1d7d5715f248c4fa107.tar.gz
fix ѕome == to correct shell test in commented stuff
-rwxr-xr-xlib/dnspython/examples/ddns.py2
-rw-r--r--lib/subunit/shell/README2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/dnspython/examples/ddns.py b/lib/dnspython/examples/ddns.py
index 84814b73cf6..27a5b932f47 100755
--- a/lib/dnspython/examples/ddns.py
+++ b/lib/dnspython/examples/ddns.py
@@ -16,7 +16,7 @@
#
# DEVICE=$1
#
-# if [ "X${DEVICE}" == "Xeth0" ]; then
+# if [ "X${DEVICE}" = "Xeth0" ]; then
# IPADDR=`LANG= LC_ALL= ifconfig ${DEVICE} | grep 'inet addr' |
# awk -F: '{ print $2 } ' | awk '{ print $1 }'`
# /usr/local/sbin/ddns.py $IPADDR
diff --git a/lib/subunit/shell/README b/lib/subunit/shell/README
index af894a2bd3e..5f7cf376263 100644
--- a/lib/subunit/shell/README
+++ b/lib/subunit/shell/README
@@ -38,7 +38,7 @@ a manually written test using the bindings might look like:
subunit_start_test "test name"
# determine if test passes or fails
result=$(something)
-if [ $result == 0 ]; then
+if [ $result -eq 0 ]; then
subunit_pass_test "test name"
else
subunit_fail_test "test name" <<END