Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny fix: getting rid of ( subshell ) and adding "" to preserve the space. #53

Merged
merged 1 commit into from Sep 13, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion spark
Expand Up @@ -65,6 +65,7 @@ spark()

# print ticks
local ticks=(▁ ▂ ▃ ▄ ▅ ▆ ▇ █)
# this is fine, but normal people don't understand it -_-
local f=$(( (($max-$min)<<8)/(${#ticks[@]}-1) ))
(( f < 1 )) && f=1

Expand All @@ -79,7 +80,7 @@ spark()
[[ ${#BASH_SOURCE[@]} -eq 1 ]] || return

# show help for no arguments if stdin is a terminal
if ([ -z $1 ] && [ -t 0 ]) || [ "$1" == '-h' ]
if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ]
then
help
exit
Expand Down