From 18c9e6bdcec09da9006e26adebb8fdb98320f49c Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Sun, 20 Apr 2025 23:10:36 +0200 Subject: [PATCH] use Hentai through PATH --- add_and_download_url.sh | 4 ++-- download_website.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/add_and_download_url.sh b/add_and_download_url.sh index 084a8e4..8d1ef59 100755 --- a/add_and_download_url.sh +++ b/add_and_download_url.sh @@ -8,9 +8,9 @@ NO_COLOR="\033[0m" # Text Reset [[ -z $1 ]] && exit 1 if [[ -z $2 ]]; then - output=$([[ $(hostname) = \s\a\t\a\n ]] && cargo run -- add_url "$1" || ./Hentai add_url "$1") + output=$(Hentai add_url "$1") else - output=$([[ $(hostname) = \s\a\t\a\n ]] && cargo run -- add_custom_name "$1" "$2" || ./Hentai add_custom_name "$1" "$2") + output=$(Hentai add_custom_name "$1" "$2") fi echo "$output" diff --git a/download_website.sh b/download_website.sh index ed116e0..af7baa6 100755 --- a/download_website.sh +++ b/download_website.sh @@ -54,7 +54,7 @@ if [[ -f $SUCCESS_FILE ]]; then fi [[ -f $IN_FILE ]] && rm $IN_FILE -[[ $(hostname) = \s\a\t\a\n ]] && cargo run -- generate "$1" || ./Hentai generate "$1" +Hentai generate "$1" if [[ $(echo $?) -ne 0 ]]; then echo -e "${IRED}Hentai failed to execute properly${NO_COLOR}"