check if tty or not

This commit is contained in:
Stefen Auris 2024-12-06 22:26:42 -05:00
parent 18755d1843
commit 11fdad7d38

View file

@ -1,5 +1,6 @@
#!/bin/bash
# docker pull ghcr.io/datawhores/of-scraper:latest
docker run -it --rm --name=ofscraper -u 1000:1000 -v /home/stev/.config/ofscraper:/home/ofscraper/.config/ -v /home/stev/gallery-dl/onlyfans:/home/ofscraper/data \
test -t 1 && USE_TTY="-it"
docker run ${USE_TTY} --rm --name=ofscraper -u 1000:1000 -v /home/stev/.config/ofscraper:/home/ofscraper/.config/ -v /home/stev/gallery-dl/onlyfans:/home/ofscraper/data \
ghcr.io/datawhores/of-scraper:3.12.9 \
ofscraper --output normal --action download --sort subscribed --post timeline,profile,messages,purchased -ts --username ALL