From 11fdad7d388796dc3909253cfc36fb81bada0fb1 Mon Sep 17 00:00:00 2001 From: sc-idevops Date: Fri, 6 Dec 2024 22:26:42 -0500 Subject: [PATCH] check if tty or not --- scripts/server_bin/update_onlyfans.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/server_bin/update_onlyfans.sh b/scripts/server_bin/update_onlyfans.sh index eaa35bf..6431471 100755 --- a/scripts/server_bin/update_onlyfans.sh +++ b/scripts/server_bin/update_onlyfans.sh @@ -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