From d6841ee98d7ec20b86f3805449484e01e76db3b2 Mon Sep 17 00:00:00 2001 From: Brian Vincent Date: Mon, 24 Mar 2003 19:29:38 +0000 Subject: [PATCH] Prompt the user again if they don't get the root password right. --- tools/wineinstall | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/tools/wineinstall b/tools/wineinstall index 96cb3b37a7f..7e6594ca0b4 100755 --- a/tools/wineinstall +++ b/tools/wineinstall @@ -313,16 +313,20 @@ then { 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