Skip to content

Commit

Permalink
modified usage message to use positional parameter for script name
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaomegagon committed Jan 15, 2023
1 parent 7db5f9b commit 000eddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otw-register-wechall
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare -i n m
declare server
server=$1 n=$2 m=$3

usage() { echo "Usage: otw-register-wechall <level-start> <level-end>"; }
usage() { echo "Usage: $0 <level-start> <level-end>"; }

if [[ -z $server || -z $n || -z $m ]]; then
usage
Expand Down

0 comments on commit 000eddf

Please sign in to comment.