hybridgroup/cylon-beaglebone

View on GitHub
scripts/install-i2c.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

node_version=$(node -v);

echo "Installing i2c module for node $node_version"

if [[ $node_version == *"v0.10."* ]]; then
  npm install i2c@0.1.8
else
  npm install i2c
fi