in reply to Re: shift or die unless
in thread shift or die unless

I think you need to use (time - (stat $arg)[9])>7 rather than -M

I think -M is fine here, as it's

-M  Script start time minus file modification time, in days.

...which - as I understand - is what the OP wants.