Comment 2 for bug 1862799

oriolpont (oriolpont) wrote :

Right. Feel free to remove that condition, leave it only as [ "$#" = "0" ].

Back in the day, it used to be possible to run Nautilus scripts without any file selection (not anymore). That test provided an extra caution to abort execution in that situation, before actually going to check that the arguments are valid. It is superfluous.