2019-02-06 13:17:03 +01:00
|
|
|
#!/bin/bash
|
2019-02-06 09:46:57 +01:00
|
|
|
|
2019-02-06 13:17:03 +01:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
2019-02-06 09:46:57 +01:00
|
|
|
|
2019-02-06 13:17:03 +01:00
|
|
|
if [ -d "$HOME/node_modules" ]; then
|
|
|
|
export NODE_PATH=$HOME/node_modules:$NODE_PATH
|
|
|
|
fi
|
2019-02-06 09:46:57 +01:00
|
|
|
|
2019-02-06 13:17:03 +01:00
|
|
|
file=$1
|
|
|
|
port=
|
|
|
|
[ ! -z "$2" ] && port=$2
|
2019-02-06 09:46:57 +01:00
|
|
|
|
2019-02-06 13:17:03 +01:00
|
|
|
node $DIR/localstream.js "$file" $port
|
2019-02-06 09:46:57 +01:00
|
|
|
|