iotempire / iotempower

IoTempower is a framework and environment for making the Internet of Things (IoT) accessible for everyone
MIT License
24 stars 18 forks source link

Fix issue - Clean up Mac support #83 #87

Closed stenoe closed 2 months ago

stenoe commented 2 months ago

Instead of trying to build a new script tool, I changed the code in user_menu.js / run_command() such that if the os is 'darwin' then the command is build following the rules for the BSD/Darwin version.

The -c flag is ignored and the file is set to /dev/null:

Darwin/BSD style: script [-aeFfkqr] [-t time] [file [command ...]]

If, like in the case of Linux systems, /dev/null is at the end, it will cause 'permission denied' because it is given to the command as argument.

ulno commented 2 months ago

That looks good, thanks will merge to main