Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #53 from aborrero/master

Tiny fix: getting rid of ( subshell ) and adding "" to preserve the space.
  • Loading branch information...
commit ef8ec23115af41ab29bf55586f0c0bd67f905dc5 2 parents 5eabc56 + d28881a
@holman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  spark
View
3  spark
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.