mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-08 23:18:42 +00:00
Improve voxvera init prompts
This commit is contained in:
11
setup.sh
11
setup.sh
@@ -39,4 +39,15 @@ for pkg in javascript-obfuscator html-minifier-terser; do
|
||||
fi
|
||||
done
|
||||
|
||||
# ensure Python packages used by the CLI are available
|
||||
for py in InquirerPy rich; do
|
||||
python3 - <<EOF >/dev/null 2>&1
|
||||
import importlib.util, sys
|
||||
sys.exit(0 if importlib.util.find_spec('$py') else 1)
|
||||
EOF
|
||||
if [ $? -ne 0 ]; then
|
||||
pip install --user "$py"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All dependencies are installed."
|
||||
|
Reference in New Issue
Block a user