install external modules.sh now shows repo name while installing.

This commit is contained in:
thedragonsinn
2024-12-02 18:14:03 +05:30
parent f6a18159c9
commit 03bafd9c67

View File

@@ -1,13 +1,17 @@
#!/usr/bin/env bash
if [ -z "${EXTRA_MODULES_REPO}" ]; then
echo "EXTRA_MODULES_REPO not set, Skipping..."
exit
fi
echo "Installing External Modules"
repo_name=$(basename "${EXTRA_MODULES_REPO}")
echo "Installing ${repo_name} to app/modules"
git clone -q "${EXTRA_MODULES_REPO}" "app/modules"
pip -q install --no-cache-dir -r app/modules/req*.txt
echo "Done"