wineinstall: su tweak
Brian Vincent (C)
VincentB at coppercolorado.com
Fri Mar 21 23:34:31 CST 2003
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
More information about the wine-patches
mailing list