-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node-i2c install script based on node vesion.
- Loading branch information
1 parent
75cc902
commit d367a92
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/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 |