PowerShell, 54 48 4545 44 bytes
if(99-gt(gc $PSCOMMANDPATH).length$PSCOMMANDPATH|wc -lt99c)){1;exit}3#
Try it doubled!Try it doubled!
Try it tripled!Try it tripled!
Gets its own invocation path with $PSCOMMANDPATH
and performs a g
et-c
ontent on the file. If
the .length
character count of that file is eitherless than 5499
or (checked via 108wc -c
from coreutils), then we output 1
and exit
(i.e., stop execution). That accounts for the original code and the doubled code. Otherwise we output 3
and exit. The actual code that's in the doubled or tripled sections is meaningless, since either we'll exit
before we get to it, or it's behind a comment #
.
Saved 6 bytes thanks to Mr. Xcoder
Saved 33 4 bytes thanks to Pavel