Skip to content

Loading…

Use $0 in the usage, instead of hardcoding the name "spark" #69

Merged
merged 1 commit into from

2 participants

@jleclanche

This is required in case spark is renamed to something else due to packaging issues.

@holman
Owner

$b is really non-descriptive. Can you change it to $spark?

@jleclanche

Sorry, notification ended up in spam. Fixed.

@holman holman merged commit 9832447 into holman:master
@holman
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 5 additions and 4 deletions.
  1. +5 −4 spark
View
9 spark
@@ -73,17 +73,18 @@ if [ "$BASH_SOURCE" == "$0" ]; then
# Prints the help text for spark.
help()
{
+ local spark=$(basename $0)
cat <<EOF
USAGE:
- spark [-h|--help] VALUE,...
+ $spark [-h|--help] VALUE,...
EXAMPLES:
- spark 1 5 22 13 53
+ $spark 1 5 22 13 53
▁▁▃▂█
- spark 0,30,55,80,33,150
+ $spark 0,30,55,80,33,150
▁▂▃▄▂█
- echo 9 13 5 17 1 | spark
+ echo 9 13 5 17 1 | $spark
▄▆▂█▁
EOF
}
Something went wrong with that request. Please try again.