File tree Expand file tree Collapse file tree 9 files changed +36
-9
lines changed Expand file tree Collapse file tree 9 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ]; then
4+ # Run command with node if the first argument contains a "-" or is not a system command. The last
5+ # part inside the "{}" is a workaround for the following bug in ash/dash:
6+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
7+ if [ " ${1# -} " != " ${1} " ] || [ -z " $( command -v " ${1} " ) " ] || { [ -f " ${1} " ] && ! [ -x " ${1} " ]; }; then
58 set -- node " $@ "
69fi
710
You can’t perform that action at this time.
0 commit comments