wineinstall: su tweak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog
 * prompt the user again if they don't get the root password right

Brian Vincent



--- wine-20030318/tools/wineinstall	Fri Mar 21 21:06:00 2003
+++ wine/tools/wineinstall	Fri Mar 21 21:20:18 2003
@@ -313,16 +313,20 @@
 
       if ! su root -c "$sucommand"
       then {
-        echo
-        echo "Either you entered an incorrect password or we failed to run"
-        echo "'$sucommand' correctly."
-        echo "If you didn't enter an incorrect password then please report
this"
-        echo "error and any steps to possibly reproduce it to"
-        echo "http://bugs.winehq.com/";
-        echo
-        echo "Installation failed, aborting."
-        exit 1
-      }
+      	if ! su root -c "$sucommand"
+        then {
+      	     echo
+             echo "Either you entered an incorrect password or we failed
to"
+             echo "run '$sucommand' correctly."
+             echo "If you didn't enter an incorrect password then please"
+             echo "report this error and any steps to possibly reproduce it
to"
+             echo "http://bugs.winehq.com/";
+             echo
+             echo "Installation failed, aborting."
+             exit 1
+         }
+         fi
+       }
       fi
 
       echo


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux