Update druid editor scripts to run from dependency

This commit is contained in:
Insality
2022-03-12 10:50:25 +02:00
parent e1ce982043
commit 102d8ca579
5 changed files with 24 additions and 18 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# @license MIT, Insality 2022
# @source https://github.com/Insality/druid
echo "Run bash for $1"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
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. Please install it via"
echo "pip3 install deftree"
exit 0
fi
python3 $1 $2