From f6eae7b90509cf206fab35d400dd69c099fc7a27 Mon Sep 17 00:00:00 2001 From: Mike Harsch Date: Fri, 11 Mar 2022 10:49:55 -0700 Subject: [PATCH] fix python2 fallback check (#892) --- hardware/LEDborg/nrgpio | 2 +- hardware/LEDborg/package.json | 2 +- hardware/PiGpio/nrgpio | 2 +- hardware/PiGpio/package.json | 2 +- hardware/PiGpio/testgpio | 2 +- hardware/PiLcd/nrlcd | 2 +- hardware/PiLcd/package.json | 2 +- hardware/PiLiter/nrgpio | 4 ++-- hardware/PiLiter/package.json | 2 +- hardware/PiSrf/nrsrf | 4 ++-- hardware/PiSrf/package.json | 2 +- hardware/Pibrella/nrgpio | 4 ++-- hardware/Pibrella/package.json | 2 +- hardware/neopixel/neopix | 2 +- hardware/neopixel/package.json | 2 +- hardware/sensehat/package.json | 2 +- hardware/sensehat/sensehat | 2 +- hardware/unicorn/package.json | 2 +- hardware/unicorn/unihat | 2 +- 19 files changed, 22 insertions(+), 22 deletions(-) diff --git a/hardware/LEDborg/nrgpio b/hardware/LEDborg/nrgpio index a758c429..d8313404 100755 --- a/hardware/LEDborg/nrgpio +++ b/hardware/LEDborg/nrgpio @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) sudo $python_cmd -u $BASEDIR/nrgpio.py $@ diff --git a/hardware/LEDborg/package.json b/hardware/LEDborg/package.json index b0f89945..52660b0e 100644 --- a/hardware/LEDborg/package.json +++ b/hardware/LEDborg/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-ledborg", - "version" : "0.0.23", + "version" : "0.0.24", "description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.", "dependencies" : { }, diff --git a/hardware/PiGpio/nrgpio b/hardware/PiGpio/nrgpio index 86b10e83..51cf1181 100755 --- a/hardware/PiGpio/nrgpio +++ b/hardware/PiGpio/nrgpio @@ -2,7 +2,7 @@ python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) $python_cmd -u $BASEDIR/nrgpio.py $@ diff --git a/hardware/PiGpio/package.json b/hardware/PiGpio/package.json index 787f300b..7aeca121 100644 --- a/hardware/PiGpio/package.json +++ b/hardware/PiGpio/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-pi-gpio", - "version": "2.0.1", + "version": "2.0.2", "description": "The basic Node-RED node for Pi GPIO", "dependencies" : { }, diff --git a/hardware/PiGpio/testgpio b/hardware/PiGpio/testgpio index 396e8449..df2b8842 100755 --- a/hardware/PiGpio/testgpio +++ b/hardware/PiGpio/testgpio @@ -2,7 +2,7 @@ python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) $python_cmd -u $BASEDIR/testgpio.py $@ diff --git a/hardware/PiLcd/nrlcd b/hardware/PiLcd/nrlcd index 9eac530d..049fd6e4 100755 --- a/hardware/PiLcd/nrlcd +++ b/hardware/PiLcd/nrlcd @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) sudo $python_cmd -u $BASEDIR/nrlcd.py $@ diff --git a/hardware/PiLcd/package.json b/hardware/PiLcd/package.json index d9b1c19e..9e7ddebb 100644 --- a/hardware/PiLcd/package.json +++ b/hardware/PiLcd/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pilcd", - "version" : "0.3.0", + "version" : "0.3.1", "description" : "A Node-RED node for Raspberry Pi to write to HD44780 style LCD panels.", "dependencies" : { }, diff --git a/hardware/PiLiter/nrgpio b/hardware/PiLiter/nrgpio index bb111c0a..d8313404 100755 --- a/hardware/PiLiter/nrgpio +++ b/hardware/PiLiter/nrgpio @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) -sudo $python_cmd -u $BASEDIR/nrgpio.py $@ \ No newline at end of file +sudo $python_cmd -u $BASEDIR/nrgpio.py $@ diff --git a/hardware/PiLiter/package.json b/hardware/PiLiter/package.json index 89726efc..9f6197f2 100644 --- a/hardware/PiLiter/package.json +++ b/hardware/PiLiter/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-piliter", - "version" : "0.0.16", + "version" : "0.0.17", "description" : "A Node-RED node to drive a Raspberry Pi Pi-LITEr 8 LED board.", "dependencies" : { }, diff --git a/hardware/PiSrf/nrsrf b/hardware/PiSrf/nrsrf index 960fdfbb..1dc6f8f9 100755 --- a/hardware/PiSrf/nrsrf +++ b/hardware/PiSrf/nrsrf @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) -exec $python_cmd -u $BASEDIR/nrsrf.py $@ \ No newline at end of file +exec $python_cmd -u $BASEDIR/nrsrf.py $@ diff --git a/hardware/PiSrf/package.json b/hardware/PiSrf/package.json index 5cfcb8f9..8422c446 100644 --- a/hardware/PiSrf/package.json +++ b/hardware/PiSrf/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pisrf", - "version" : "0.2.0", + "version" : "0.2.1", "description" : "A Node-RED node for a Raspberry Pi to use a SRF04 or SRF05 range finder", "dependencies" : { }, diff --git a/hardware/Pibrella/nrgpio b/hardware/Pibrella/nrgpio index bb111c0a..d8313404 100755 --- a/hardware/Pibrella/nrgpio +++ b/hardware/Pibrella/nrgpio @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) -sudo $python_cmd -u $BASEDIR/nrgpio.py $@ \ No newline at end of file +sudo $python_cmd -u $BASEDIR/nrgpio.py $@ diff --git a/hardware/Pibrella/package.json b/hardware/Pibrella/package.json index 555b04e4..35e21b9c 100644 --- a/hardware/Pibrella/package.json +++ b/hardware/Pibrella/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pibrella", - "version" : "0.0.16", + "version" : "0.0.17", "description" : "A Node-RED node to read from and write to a Pibrella Raspberry Pi add-on board", "dependencies" : { }, diff --git a/hardware/neopixel/neopix b/hardware/neopixel/neopix index 3e1609cb..61097662 100755 --- a/hardware/neopixel/neopix +++ b/hardware/neopixel/neopix @@ -1,7 +1,7 @@ #!/bin/bash python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) if [ "$1" == "check" ];then diff --git a/hardware/neopixel/package.json b/hardware/neopixel/package.json index 226fa6e8..6e2e7700 100644 --- a/hardware/neopixel/package.json +++ b/hardware/neopixel/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-neopixel", - "version" : "2.0.0", + "version" : "2.0.1", "description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.", "dependencies" : { }, diff --git a/hardware/sensehat/package.json b/hardware/sensehat/package.json index b681c18a..23060bbc 100644 --- a/hardware/sensehat/package.json +++ b/hardware/sensehat/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-sense-hat", - "version" : "0.1.1", + "version" : "0.1.2", "description" : "A Node-RED node to interact with a Raspberry Pi Sense HAT", "repository" : { "type":"git", diff --git a/hardware/sensehat/sensehat b/hardware/sensehat/sensehat index 1f583827..0ea73810 100755 --- a/hardware/sensehat/sensehat +++ b/hardware/sensehat/sensehat @@ -2,7 +2,7 @@ python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) diff --git a/hardware/unicorn/package.json b/hardware/unicorn/package.json index e8b33756..78af1a10 100644 --- a/hardware/unicorn/package.json +++ b/hardware/unicorn/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-unicorn-hat", - "version" : "0.1.0", + "version" : "0.1.1", "description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.", "dependencies" : { "pngjs": "2.2.*" diff --git a/hardware/unicorn/unihat b/hardware/unicorn/unihat index 0b3133b2..6df944b8 100755 --- a/hardware/unicorn/unihat +++ b/hardware/unicorn/unihat @@ -2,7 +2,7 @@ python_cmd='python3' # Fallback to Python 2, if Python 3 is not available -command -v python3 > /dev/null || python_cmd=`python` +command -v python3 > /dev/null || python_cmd='python' BASEDIR=$(dirname $0) sudo $python_cmd -u $BASEDIR/unihat.py $@