#!/bin/bash set -ex # Remove native GPIO node if exists if [[ -d "/usr/src/node-red/node_modules/@node-red/nodes/core/hardware" ]]; then echo "Removing native GPIO node" rm -r /usr/src/node-red/node_modules/@node-red/nodes/core/hardware else echo "Skip removing native GPIO node" fi