Browse code

- fixed improper use of == (reported by Norman Brandinger)

Jan Janak authored on 10/03/2005 08:34:08
Showing 1 changed files
... ...
@@ -559,7 +559,7 @@ rpid() {
559 559
 		add|rm)
560 560
 		        MODE=$1;
561 561
 
562
-			if [ "$MODE" == "add" ] ; then
562
+			if [ "$MODE" = "add" ] ; then
563 563
 			    ARG_NUM=3;
564 564
 			else
565 565
 			    ARG_NUM=2;
... ...
@@ -911,7 +911,7 @@ case $1 in
911 911
 		chmod a+w $path
912 912
 		trap "rm $path;  clear; echo sc monitor ^C-ed; exit 1" 2
913 913
 		attempt=0
914
-		if [ "$2" == "" ]; then
914
+		if [ "$2" = "" ]; then
915 915
 		    loops=-1;
916 916
 		else
917 917
 		    loops=$2;