Skip to content

Commit

Permalink
tools.sh: fix passing arguments to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Feb 2, 2025
1 parent 14ff31c commit 3efe13c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,19 @@ set -e

case "$1" in
--format)
format_file "$*"
format_file "$2"
;;
--format-all)
format_all
;;
--convert-unicode)
convert_unicode "$*"
convert_unicode "$2"
;;
--log-domains)
log_domains "$*"
log_domains "$2" "$3" "$4"
;;
--prune-lines)
prune_lines "$*"
prune_lines "$2" "$3"
;;
--download-toplist)
download_toplist
Expand All @@ -189,7 +189,7 @@ case "$1" in
download_nrd_feed
;;
--send-telegram)
send_telegram "$*"
send_telegram "$2"
;;
*)
printf "\n\e[1;31mInvalid argument: %s\e[0m\n\n" "$*" >&2
Expand Down

0 comments on commit 3efe13c

Please sign in to comment.