Skip to content

Commit 829ec78

Browse files
committed
fix(reset): don't delete images/README
Fix #15
1 parent 909cdd9 commit 829ec78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mwutil/modules/reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def execute(self, config: MWUtilConfig, args: Namespace):
1818
print("Deleting uploads...")
1919
run_container_command(
2020
config,
21-
["rm", "-rf", "images/*"],
21+
["find", "images", "-mindepth", "1", "!", "-name", "README", "-exec", "rm", "-rf", "{}", "+"],
2222
"mediawiki"
2323
)
2424

0 commit comments

Comments
 (0)