[PC-BSD Commits] r659 - pcbsd/trunk/PCInstall

svn at pcbsd.org svn at pcbsd.org
Mon Sep 3 10:04:05 PDT 2007


Author: tim
Date: 2007-09-03 10:04:05 -0700 (Mon, 03 Sep 2007)
New Revision: 659

Modified:
   pcbsd/trunk/PCInstall/pcinstall.ui.h
Log:
Fixed bug #15 - Switched echo statement to use single quotes to avoid accidentally evaluating variables

Modified: pcbsd/trunk/PCInstall/pcinstall.ui.h
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.ui.h	2007-09-03 01:20:23 UTC (rev 658)
+++ pcbsd/trunk/PCInstall/pcinstall.ui.h	2007-09-03 17:04:05 UTC (rev 659)
@@ -1439,7 +1439,7 @@
    QFile file( "/mnt/tmp/setPass" );
     if ( file.open( IO_WriteOnly ) ) {
 	QTextStream stream( &file );
-	stream << "echo \"" << linePassword->text() << "\" | pw usermod root -h 0\n" ;
+	stream << "echo '" << linePassword->text() << "' | pw usermod root -h 0\n" ;
 	while ( i < 100)
 	{
 	
@@ -1448,7 +1448,7 @@
 		break;   
 	    }
 		
-	    stream << "echo \"" << AddPassword[i] << "\" | pw useradd -n " << AddUserName[i] << " -G wheel,operator -h 0 -s " + AddShell[i] + " -d /home/" << AddUserName[i] << " -m -c \"" << AddRealName[i] << "\"\n";
+	    stream << "echo '" << AddPassword[i] << "' | pw useradd -n " << AddUserName[i] << " -G wheel,operator -h 0 -s " + AddShell[i] + " -d /home/" << AddUserName[i] << " -m -c \"" << AddRealName[i] << "\"\n";
 	
 	    stream << "chown -R " << AddUserName[i] << " /home/" << AddUserName[i] << "\n";
 	    stream << "chgrp -R " << AddUserName[i] << " /home/" << AddUserName[i] << "\n";



More information about the Commits mailing list