Subject: Re: Feature proposal - over-quota script execution
From: Ondřej Jirman
Date: Sun, 21 Jun 2020 18:30:31 +0200
On Sun, Jun 21, 2020 at 04:01:54PM +0000, analoq wrote:
> Is there interest in a feature that allows the user to specify a script that
> gets executed whenever an 'Over quota' error is encountered? I am using this
> for a while now and it is quite handy.
> The way my implementation currently works is: megatools dl --exec-on-quota
> "path/to/script.sh" ....
I think it's more usual for programs to return different statuses per error
type, and this allows scripts to use the exit status in conditional code.