summaryrefslogtreecommitdiff
path: root/tools/mcuota.sh
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-18 06:31:24 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-24 12:57:55 +0300
commit0a065f48be99d4ebae49de622a335f23e50c6ca0 (patch)
treeb591d91fac26e5bf7a4dd6d37178b978061ef060 /tools/mcuota.sh
parent022ec129bb8f511a7bf8cf537f165afce2303262 (diff)
pump-mqtt-bot: wip; relayctl: somewhat stable
Diffstat (limited to 'tools/mcuota.sh')
-rwxr-xr-xtools/mcuota.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/mcuota.sh b/tools/mcuota.sh
new file mode 100755
index 0000000..b2e7910
--- /dev/null
+++ b/tools/mcuota.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+
+. "$DIR/lib.bash"
+
+if [ -d "$DIR/../venv" ]; then
+ echoinfo "activating python venv"
+ . "$DIR/../venv/bin/activate"
+else
+ echowarn "python venv not found"
+fi
+
+"$DIR/mcuota.py" "$@" \ No newline at end of file