From 0d5c3c86f9efe9dfa3c99ed87caef01ce8e46c38 Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Thu, 20 Jun 2024 05:13:56 -0300 Subject: [PATCH] Updates gdl-update-todo.sh to force default behaviour --- scripts/shell/gdl-update-todo.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/shell/gdl-update-todo.sh b/scripts/shell/gdl-update-todo.sh index f90b546..30d30fb 100755 --- a/scripts/shell/gdl-update-todo.sh +++ b/scripts/shell/gdl-update-todo.sh @@ -3,22 +3,22 @@ # TODO, warning! This script is horrible and insecure with background jobs show_help() { - echo "Usage: $0 [--abort-on-found|-a] [--parallel|-p] [--custom-grep-search|-c ]" + echo "Usage: $0 [--no-abort-on-found] [--no-parallel] [--custom-grep-search|-c ]" echo "Options:" - echo " --abort-on-found|-a (optional) The script will update each gallery download until it finds an already downloaded file." - echo " --parallel|-a (optional) The script will update each gallery download in parallel, with background jobs." + echo " --no-abort-on-found (optional) The script will not update each gallery download until it finds an already downloaded file." + echo " --no-parallel (optional) The script will not update each gallery download in parallel, with background jobs." echo " --custom-grep-search|-c (optional) Includes a string to filter the URLs." } -should_abort_on_found=false -should_parallel_download=false +should_abort_on_found=true +should_parallel_download=true custom_grep_search='' while [ "$#" -gt 0 ]; do case "$1" in --help|-h) show_help; exit ;; - --abort-on-found|-a) should_abort_on_found=true; shift ;; - --parallel|-p) should_parallel_download=true; shift ;; + # --no-abort-on-found) should_abort_on_found=false; shift ;; + # --no-parallel) should_parallel_download=false; shift ;; --custom-grep-search|-c) custom_grep_search="$2"; shift 2 ;; *) shift ;; esac