2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings
authorIgor Kozhukhov <igor.kozhukhov@nexenta.com>
Tue, 29 May 2012 11:05:54 -0400
changeset 13706 b83bad61dfe1
parent 13705 70355eedf57a
child 13707 3f41b24ce657
2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings Reviewed by: Richard Lowe <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Dan McDonald <[email protected]>
usr/src/cmd/svc/configd/restore_repository.sh
--- a/usr/src/cmd/svc/configd/restore_repository.sh	Sun May 27 16:49:00 2012 +0200
+++ b/usr/src/cmd/svc/configd/restore_repository.sh	Tue May 29 11:05:54 2012 -0400
@@ -21,6 +21,7 @@
 # CDDL HEADER END
 #
 #
+# Copyright 2012 Nexenta Sysytems, Inc.  All rights reserved.
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
@@ -91,7 +92,7 @@
 If there are any problems which need human intervention, this script will
 give instructions and then exit back to your shell."
 
-if [ "$myroot" -eq / ]; then
+if [ "$myroot" = "/" ]; then
 	system="system"
 	[ "`/sbin/zonename`" != global ] && system="zone"
 	echo >&2 "