diff options
author | Marc Laukien <marc@zeroc.com> | 2002-09-06 19:18:58 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-09-06 19:18:58 +0000 |
commit | fe1a2311c08cc2ce0b3da4c17d055978adc1186f (patch) | |
tree | 38a1beb61f1b38db07616a1ccfa184041e0c7ae3 /cpp/src/IcePatch/Client.cpp | |
parent | clone() fixes (diff) | |
download | ice-fe1a2311c08cc2ce0b3da4c17d055978adc1186f.tar.bz2 ice-fe1a2311c08cc2ce0b3da4c17d055978adc1186f.tar.xz ice-fe1a2311c08cc2ce0b3da4c17d055978adc1186f.zip |
fix
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 13836eea263..da682b193e0 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -210,14 +210,18 @@ IcePatch::Client::run(int argc, char* argv[]) getcwd(cwd, PATH_MAX); #endif cout << "WARNING: All orphaned files in `" << cwd << "' will be removed." << endl; - cout << "Do you want to proceed? (yes/no)" << endl; string answer; - cin >> answer; - transform(answer.begin(), answer.end(), answer.begin(), tolower); - if(answer != "yes") + do { - return EXIT_SUCCESS; + cout << "Do you want to proceed? (yes/no)" << endl; + cin >> answer; + transform(answer.begin(), answer.end(), answer.begin(), tolower); + if(answer == "no") + { + return EXIT_SUCCESS; + } } + while(answer != "yes"); } // |