Skip to content

jsexec fails unless node1 directory exists

This may sound like an odd request, but would it be possible to suppress/ignore the error if Node1/ doesn't exist?

Mainly came across this in testing running inside my Docker image, that doesn't have the node1 directory by default, because the sbbs-init script creates it from a copy of the original inside a volume container with a symlink to the default path prior to starting sbbs.

Not a massive issue, but would be a nice to have... maybe just throw if/when trying to access a property/global that uses node data? As it is, I just blindly check node 1, then get the max node number, then circle back around.

https://github.com/bbs-io/synchronet-docker/blob/7889b2cb201eadea5f46953d5cf3ab1e60346a52/sbbs-scripts/init.js#L56