summaryrefslogtreecommitdiffstats
path: root/files/.bin/arduino-cli
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2024-09-20 14:16:56 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2024-09-20 14:16:56 +0200
commit45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a (patch)
treeb564c1c43920def6641cd482a7b4dca453dbc043 /files/.bin/arduino-cli
parent07dd8e37eb767c3dd6abf63e5e4a720cd778da15 (diff)
downloaddotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.tar.gz
dotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.zip
Change dotfiles structure, and add guix-channels declaration.
Diffstat (limited to 'files/.bin/arduino-cli')
-rwxr-xr-xfiles/.bin/arduino-cli14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/.bin/arduino-cli b/files/.bin/arduino-cli
new file mode 100755
index 0000000..7c0d41a
--- /dev/null
+++ b/files/.bin/arduino-cli
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4
5if [[ $(docker images | grep jd-arduino-cli | wc -l) -eq 0 ]]
6then
7 docker build -f "$SCRIPT_DIR/jd-arduino-cli.Dockerfile" -t jd-arduino-cli .
8fi
9
10docker run --rm --network none -it --privileged \
11 -v $(pwd):/src \
12 -v jd-arduino-cli-tmp:/tmp \
13 -v /dev:/dev jd-arduino-cli \
14 arduino-cli $@