diff options
author | Eric Wong <e@80x24.org> | 2021-09-15 21:35:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-15 23:14:55 +0000 |
commit | add90b9504f4217af5e35b3be7e326b8c6419647 (patch) | |
tree | a324dd2f4f36d849dff752fcadd2ba82e93e7297 /script/public-inbox-compact | |
parent | 5a5d2496f139e45823dbee3361ab790b2db4d31f (diff) | |
download | public-inbox-add90b9504f4217af5e35b3be7e326b8c6419647.tar.gz |
Because make(1), git(1), tar(1) all support -C in this form, as do our newer commands such as lei, public-inbox-{clone,fetch}.
Diffstat (limited to 'script/public-inbox-compact')
-rwxr-xr-x | script/public-inbox-compact | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/public-inbox-compact b/script/public-inbox-compact index 6e34aaeb..80d0224b 100755 --- a/script/public-inbox-compact +++ b/script/public-inbox-compact @@ -17,7 +17,7 @@ options: See public-inbox-compact(1) man page for full documentation. EOF -GetOptions($opt, qw(all help|h), +GetOptions($opt, qw(all C=s@ help|h), # compact options: qw(jobs|j=i quiet|q blocksize|b=s no-full|n fuller|F), ) or die $help; @@ -25,6 +25,7 @@ if ($opt->{help}) { print $help; exit 0 }; require PublicInbox::Admin; PublicInbox::Admin::require_or_die('-index'); +PublicInbox::Admin::do_chdir(delete $opt->{C}); PublicInbox::Admin::progress_prepare($opt); require PublicInbox::InboxWritable; |