control-freak-ide/dist/misc_linux/start_node.sh
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

15 lines
282 B
Bash

#!/usr/bin/env bash
if [ `getconf LONG_BIT` = "64" ]
then
cd ./server/linux_64
else
cd ./server/linux_32
fi
if [ -z "$DISPLAY" ]; then
node --export=false --web=false --file=start.js "$@"
else
gnome-terminal -e "node --export=false --web=false start.js \"$@\""
fi