get rid of unneeded echo

This commit is contained in:
2025-04-20 23:31:37 +02:00
parent 39914504a0
commit 28f372425e
2 changed files with 4 additions and 8 deletions

View File

@ -16,10 +16,8 @@ fi
echo "$output" echo "$output"
[[ $output =~ "#" ]] || exit 1 [[ $output =~ "#" ]] || exit 1
url=$(echo "$output" | awk '{print $1}') url=$(awk '{print $1}' <<< "$output")
path=$(echo "$output" | awk '{print $3}') path=$(awk '{print $3}' <<< "$output")
[[ $(hostname) = \s\a\t\a\n ]] && rm -rf ./Artists/*
for ((n=0;n<5;n++)); do for ((n=0;n<5;n++)); do
if [[ $url =~ "iwara.tv" ]]; then if [[ $url =~ "iwara.tv" ]]; then

View File

@ -41,8 +41,6 @@ download() {
[[ $SUCCESS != \t\r\u\e ]] && echo "$1" >> "$FAIL_FILE" [[ $SUCCESS != \t\r\u\e ]] && echo "$1" >> "$FAIL_FILE"
} }
[[ $(hostname) = \s\a\t\a\n ]] && rm -rf ./Artists/*
if [[ -f $FAIL_FILE ]]; then if [[ -f $FAIL_FILE ]]; then
[[ -f "${FAIL_FILE}.old" ]] && rm -f "${FAIL_FILE}.old" [[ -f "${FAIL_FILE}.old" ]] && rm -f "${FAIL_FILE}.old"
mv "$FAIL_FILE" "${FAIL_FILE}.old" mv "$FAIL_FILE" "${FAIL_FILE}.old"
@ -62,8 +60,8 @@ if [[ $(echo $?) -ne 0 ]]; then
fi fi
while IFS= read -r line; do while IFS= read -r line; do
url=$(echo "$line" | awk '{print $1}') url=$(awk '{print $1}' <<< "$line")
path=$(echo "$line" | awk '{print $3}') path=$(awk '{print $3}' <<< "$line")
echo "url: $url" echo "url: $url"
echo "path: $path" echo "path: $path"