mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Remove bash dependency (#3216)
Change backticks to dollar sign and parentheses
This commit is contained in:
parent
35f617e96c
commit
61d85b49e6
19
packages/node_modules/node-red/bin/node-red-pi
vendored
19
packages/node_modules/node-red/bin/node-red-pi
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright JS Foundation and other contributors, http://js.foundation
|
# Copyright JS Foundation and other contributors, http://js.foundation
|
||||||
#
|
#
|
||||||
@ -29,15 +29,16 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Find the real location of this script
|
# Find the real location of this script
|
||||||
CURRENT_PATH=`pwd`
|
CURRENT_PATH=$(pwd)
|
||||||
SCRIPT_PATH="${BASH_SOURCE[0]}";
|
SCRIPT_PATH=$(readlink -f "$0")
|
||||||
while [ -h "${SCRIPT_PATH}" ]; do
|
while [ -h "${SCRIPT_PATH}" ]; do
|
||||||
cd "`dirname "${SCRIPT_PATH}"`"
|
cd "$(dirname "${SCRIPT_PATH}")" || exit 1
|
||||||
SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
|
P=$(basename "${SCRIPT_PATH}")
|
||||||
|
SCRIPT_PATH=$(readlink "${P}")
|
||||||
done
|
done
|
||||||
cd "`dirname "${SCRIPT_PATH}"`" > /dev/null
|
cd "$(dirname "${SCRIPT_PATH}")" > /dev/null || exit 1
|
||||||
SCRIPT_PATH="`pwd`";
|
SCRIPT_PATH=$(pwd)
|
||||||
cd $CURRENT_PATH
|
cd "$CURRENT_PATH" || exit 1
|
||||||
|
|
||||||
# Run Node-RED
|
# Run Node-RED
|
||||||
exec /usr/bin/env node $OPTIONS $SCRIPT_PATH/../red.js $ARGS
|
exec /usr/bin/env node ${OPTIONS} ${SCRIPT_PATH}/../red.js ${ARGS}
|
||||||
|
Loading…
Reference in New Issue
Block a user