TouchLay/LayOS — Issue #2: Shell app execution - When using a directory or nothing as script path it crashes LayOS
Author: Daniel0108
Created: 2011-10-15 10:52:58+00:00
State: open

The following error happens when trying to spawn a process in shell mode and execute a directory:
```
[DEBUG ] [ProcessMAN ] Spawned new process with name 'App_Application'. Started it with 'shell': ./scripts/. ID: 0
[ERROR ] [App ] Application boot error:
Assertion 'pa_atomic_load(&(b)->_ref) > 0' failed at pulsecore/memblock.c:589, function pa_memblock_unref(). Aborting.
Aborted
```

We should check if the script is a file or directory.