mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Fixed rm --force argument not forcing prompt to not show up
This commit is contained in:
+3
-1
@@ -98,7 +98,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
let options = Options {
|
||||
force,
|
||||
interactive: {
|
||||
if matches.contains_id(OPT_PROMPT) {
|
||||
if force {
|
||||
InteractiveMode::Never
|
||||
} else if matches.contains_id(OPT_PROMPT) {
|
||||
InteractiveMode::Always
|
||||
} else if matches.contains_id(OPT_PROMPT_MORE) {
|
||||
InteractiveMode::Once
|
||||
|
||||
Reference in New Issue
Block a user