Maybe you're wondering how could you determine if you're running one-liner (-e option) or script actually (-e is a bit strange name for a script, but it can happen) :-)
If it's the case, simply test if -f $0: if true, you're running a script, otherwise it's one-liner.