mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
node-red-pi: fix behavior with old bash version (#1713)
For some reason the following will result in an endless loop under bash-4.3.42: while([ -h "${SCRIPT_PATH}" ]) Just remove the round brackets (parentheses) to fix the issue. They're not needed anyway.
This commit is contained in:
parent
6fa0d671c0
commit
60ff8660de
@ -31,7 +31,7 @@ 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="${BASH_SOURCE[0]}";
|
||||||
while([ -h "${SCRIPT_PATH}" ]); do
|
while [ -h "${SCRIPT_PATH}" ]; do
|
||||||
cd "`dirname "${SCRIPT_PATH}"`"
|
cd "`dirname "${SCRIPT_PATH}"`"
|
||||||
SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
|
SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user