mirror of
https://github.com/usetrmnl/sensor_scanner.git
synced 2026-04-29 13:45:14 -07:00
Refactored the orignal setup script as the build script
Necessary to organize this within the `bin` folder.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#! /usr/bin/env bash
|
||||
# save the current directory
|
||||
pushd .
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
pushd .
|
||||
cd ~
|
||||
mkdir Projects
|
||||
cd Projects
|
||||
@@ -10,7 +15,5 @@ make
|
||||
sudo apt install -y i2c-tools libi2c-dev
|
||||
sudo raspi-config nonint do_i2c 0
|
||||
|
||||
# restore the original directory
|
||||
popd
|
||||
popd
|
||||
make
|
||||
|
||||
Reference in New Issue
Block a user