Solve #119 Add script for create custom component

This commit is contained in:
Insality
2022-03-09 21:17:24 +02:00
parent 7b8dfb1ef0
commit b84b6c461d
7 changed files with 131 additions and 3 deletions

View File

@@ -5,4 +5,10 @@
echo "Run bash for $1"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
/usr/local/bin/python3.7 $DIR/setup_layers.py $@
is_defree_installed=$(pip3 list --disable-pip-version-check | grep -E "deftree")
if [ -z "$is_defree_installed" ]; then
echo "The python deftree is not installed. Installing..."
pip3 install deftree
fi
python3 $DIR/setup_layers.py $@