Skip to content

Commit 6f67f33

Browse files
authored
Merge pull request #806 from meshtastic/fifieldt-patch-1
Add check for poetry install to regen-protobufs.sh
2 parents 213faa0 + e60c8ea commit 6f67f33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/regen-protobufs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ set -e
66
#gsed -i 's/import "\//import ".\//g' ./protobufs/meshtastic/*
77
#gsed -i 's/package meshtastic;//g' ./protobufs/meshtastic/*
88

9+
POETRYDIR=$(poetry env info --path)
10+
11+
if [[ -z "${POETRYDIR}" ]]; then
12+
poetry install
13+
fi
14+
915
# protoc looks for mypy plugin in the python path
1016
source $(poetry env info --path)/bin/activate
1117

0 commit comments

Comments
 (0)