@drewdevault
That makes me *cringe*. Not much else to discuss, to be frank.

Like others have said, I'd find it preferable if the command just fails with an explanatory message and leave it to the user to deal with the situation more appropriately (sudo or whatever).