Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(installer): cleanly support custom PREFIX in install.sh for native Termux deployments
Samir Hossains7fadf8b6e822
diff --git a/install.sh b/install.shindex 63a6b11..51d91a6 100755--- a/install.sh+++ b/install.sh@@ -7,6 +7,11 @@ log_warn() { echo -e "\033[1;33mWARNING: $1\033[0m"; }log_err() { echo -e "\033[0;31mERROR: $1\033[0m"; exit 1; }INSTALL_DIR="/usr/local/bin"++if [ -n "${PREFIX:-}" ] && [[ "$PREFIX" == *com.termux* ]]; then+ INSTALL_DIR="$PREFIX/bin"+fi+BIN_NAME="moviebox-tui"APP_PATH="$INSTALL_DIR/$BIN_NAME"