Updates gdl-update-todo.sh to force default behaviour
This commit is contained in:
@@ -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 <string>]"
|
||||
# echo "Usage: $0 [--no-abort-on-found] [--parallel] [--custom-grep-search|-c <string>]"
|
||||
echo "Usage: $0 [--custom-grep-search|-c <string>]"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user