miniscript
miniscript copied to clipboard
Fix multiple files execution with -i
I introduced a bug that caused executing every argument on the command line when -i switch is provided:
$ cat >xx.ms
print shellArgs
$ miniscript xx.ms xx.ms xx.ms
["xx.ms", "xx.ms", "xx.ms"]
$ miniscript -i xx.ms xx.ms xx.ms
["xx.ms", "xx.ms", "xx.ms"]
["xx.ms", "xx.ms"]
["xx.ms"]
...
This PR should fix it.