mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
15 lines
404 B
Bash
Executable File
15 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
|
|
python -c "import sense_hat" 2> /dev/null
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "WARNING : Can't find Sense HAT python library"
|
|
echo "WARNING : Please install using the following commands"
|
|
echo "WARNING : sudo apt-get update"
|
|
echo "WARNING : sudo apt-get install sense-hat"
|
|
echo "WARNING : sudo pip-3.2 install pillow"
|
|
else
|
|
echo "Sense HAT python library is installed"
|
|
fi
|