diff --git a/scripts/shell/gdl-update-todo.sh b/scripts/shell/gdl-update-todo.sh index 30d30fb..0e0af6e 100755 --- a/scripts/shell/gdl-update-todo.sh +++ b/scripts/shell/gdl-update-todo.sh @@ -3,22 +3,23 @@ # TODO, warning! This script is horrible and insecure with background jobs show_help() { - echo "Usage: $0 [--no-abort-on-found] [--no-parallel] [--custom-grep-search|-c ]" + # echo "Usage: $0 [--no-abort-on-found] [--parallel] [--custom-grep-search|-c ]" + echo "Usage: $0 [--custom-grep-search|-c ]" echo "Options:" - 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 " --no-abort-on-found (optional) The script will not update each gallery download until it finds an already downloaded file." + # echo " --parallel (optional) The script will 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=true -should_parallel_download=true +should_parallel_download=false custom_grep_search='' while [ "$#" -gt 0 ]; do case "$1" in --help|-h) show_help; exit ;; # --no-abort-on-found) should_abort_on_found=false; shift ;; - # --no-parallel) should_parallel_download=false; shift ;; + # --parallel) should_parallel_download=true; shift ;; --custom-grep-search|-c) custom_grep_search="$2"; shift 2 ;; *) shift ;; esac