diff --git a/QUICKSTART.md b/QUICKSTART.md index b1c3f2b..e16d601 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -3,7 +3,7 @@ ## One-Line Install ```bash -curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh -o install-lbry.sh && bash install-lbry.sh ``` **Requirements:** Git and Python 3.8+ must be installed. diff --git a/README.md b/README.md index a44e636..75ac2f9 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ A Python tool that incrementally syncs downloadable file claims from configured ### One-Line Install (Easiest) -Install with a single command using curl: +Install with a single command: ```bash -curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh -o install-lbry.sh && bash install-lbry.sh ``` **Requirements:** Git and Python 3.8+ must be installed. diff --git a/remote-install.sh b/remote-install.sh index 03ecc37..d840269 100755 --- a/remote-install.sh +++ b/remote-install.sh @@ -2,8 +2,16 @@ # # LBRY Downloader - Remote Installation Script # -# This script can be curl'd and piped to bash for easy installation: -# curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh | bash +# This script downloads and sets up LBRY Downloader. +# +# USAGE: +# Option 1 - Download and run (Recommended): +# curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh -o install-lbry.sh && bash install-lbry.sh +# +# Option 2 - Clone manually: +# git clone https://github.com/PR0M3TH3AN/LBRY-Downloader.git +# cd LBRY-Downloader +# ./setup.py # set -e @@ -61,6 +69,19 @@ fi print_status "Python $PYTHON_VERSION found" +# Check if running in interactive mode +if [ ! -t 0 ]; then + print_error "This script requires interactive mode" + echo "" + echo "Please run using:" + echo " curl -fsSL https://raw.githubusercontent.com/PR0M3TH3AN/LBRY-Downloader/main/remote-install.sh -o install-lbry.sh && bash install-lbry.sh" + echo "" + echo "Or clone manually:" + echo " git clone https://github.com/PR0M3TH3AN/LBRY-Downloader.git" + echo " cd LBRY-Downloader && ./setup.py" + exit 1 +fi + # Check if already installed if [ -d "$INSTALL_DIR" ]; then print_warning "LBRY Downloader already exists at $INSTALL_DIR"