mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 10:38:07 +01:00
Fix tootctl upgrade storage-schema failing to delete empty directories (#13593)
This commit is contained in:
parent
5cff7910c2
commit
ff72c0472f
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ module Mastodon
|
|||
FileUtils.mv(previous_path, upgraded_path)
|
||||
|
||||
begin
|
||||
FileUtils.rmdir(previous_path, parents: true)
|
||||
FileUtils.rmdir(File.dirname(previous_path), parents: true)
|
||||
rescue Errno::ENOTEMPTY
|
||||
# OK
|
||||
end
|
||||
|
@ -131,7 +131,7 @@ module Mastodon
|
|||
|
||||
unless dry_run?
|
||||
begin
|
||||
FileUtils.rmdir(upgraded_path, parents: true)
|
||||
FileUtils.rmdir(File.dirname(upgraded_path), parents: true)
|
||||
rescue Errno::ENOTEMPTY
|
||||
# OK
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue