From 41f1a1e980d4baa4e38c3a3a6a88600c702febca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Tue, 22 Feb 2022 20:58:36 +0100 Subject: [PATCH] Fix a bug in adept_activate : cannot ask for interactive password if output directory already exists --- utils/adept_activate.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/adept_activate.cpp b/utils/adept_activate.cpp index 83492da..fef2297 100644 --- a/utils/adept_activate.cpp +++ b/utils/adept_activate.cpp @@ -282,10 +282,11 @@ int main(int argc, char** argv) goto end; if (key == 'y' || key == 'Y') break; - // Clean STDIN buf - while ((key = getchar()) != '\n') - ; } + + // Clean STDIN buf + while ((key = getchar()) != '\n') + ; } if (!password)