tg.sh/pre-commit.sh: do not rely on word-splitting inside braces
commitac650054415876576e31735375126ec47e280c0c
authorKyle J. McKay <mackyle@gmail.com>
Thu, 30 Nov 2017 11:50:57 +0000 (30 03:50 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 30 Nov 2017 11:50:57 +0000 (30 03:50 -0800)
tree3a806d5a2e4593e6850552712d48426760f43f72
parentf0b72fdc8421509a6e0fe7cef532b9baf69887e2
tg.sh/pre-commit.sh: do not rely on word-splitting inside braces

This ought to result in three arguments to echo:

    word=go
    echo ${word:+and "$word"}

Just as though it was written like so:

    echo and go

Some older shell implementations end up behaving like this:

    echo "and go"

That breaks numerous things and can easily be avoided by
moving the splitting whitespace outside of the braces like so:

    echo ${word:+and} ${word:+"$word"}

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-commit.sh
tg.sh