summaryrefslogtreecommitdiff
path: root/misc/fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/fsck.c')
-rw-r--r--misc/fsck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index 6fa84074..0a616a51 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -952,13 +952,13 @@ int main(int argc, char *argv[])
fsck_path = string_copy(fsck_prefix_path);
}
+ if ((num_devices == 1) || (serialize))
+ interactive = 1;
+
/* If -A was specified ("check all"), do that! */
if (doall)
return check_all();
- if ((num_devices == 1) || (serialize))
- interactive = 1;
-
for (i = 0 ; i < num_devices; i++) {
fsck_device(devices[i], interactive);
if (serialize) {