Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #52 from akatrevorjay/master-pull
Allow spark to be sourced by other scripts easily
  • Loading branch information
holman committed Aug 9, 2012
2 parents 1194fa6 + 60c4d0d commit 5eabc56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spark
Expand Up @@ -75,6 +75,9 @@ spark()
echo
}

# If we're being sourced, don't worry about such things
[[ ${#BASH_SOURCE[@]} -eq 1 ]] || return

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

0 comments on commit 5eabc56

Please sign in to comment.