summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2014-11-23 14:38:32 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-23 10:55:18 +0000
commitbc62b5835f1a18b3a72dfdcb58e37188c72501fb (patch)
tree9123710889443519c51c4c08b5843cb6277a6ee4 /yarns
parenta44c4b0e3cae671663c4d99b6d89d6a2f12add35 (diff)
downloadmorph-bc62b5835f1a18b3a72dfdcb58e37188c72501fb.tar.gz
Quote variables and use = instead of ==
Diffstat (limited to 'yarns')
-rw-r--r--yarns/implementations.yarn6
1 files changed, 3 insertions, 3 deletions
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 83ff03c6..8b43286f 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -755,7 +755,7 @@ them, so they can be added to the end of the implements section.
# eval used so word splitting in the text is preserved
eval set -- '"$@"' $MATCH_9
fi
- if [ $MATCH_3 == "deploys" ]; then run_morph "$@"
+ if [ "$MATCH_3" = "deploys" ]; then run_morph "$@"
else attempt_morph "$@"; fi
IMPLEMENTS WHEN the user (attempts to deploy|deploys) (.*) from cluster (\S+) in branch (\S+)
@@ -763,7 +763,7 @@ them, so they can be added to the end of the implements section.
set -- deploy "$MATCH_3"
systems=$(echo "$MATCH_2" | sed -e 's/, /\n/g' -e 's/ and /\n/g')
set -- "$@" $systems
- if [ $MATCH_1 == "deploys" ]; then run_morph "$@"
+ if [ "$MATCH_1" = "deploys" ]; then run_morph "$@"
else attempt_morph "$@"; fi
IMPLEMENTS WHEN the user (attempts to upgrade|upgrades) the (system|cluster) (\S+) in branch (\S+)( with options (.*))?
@@ -773,7 +773,7 @@ them, so they can be added to the end of the implements section.
# eval used so word splitting in the text is preserved
eval set -- '"$@"' $MATCH_6
fi
- if [ $MATCH_1 == "upgrades" ]; then run_morph "$@"
+ if [ "$MATCH_1" = "upgrades" ]; then run_morph "$@"
else attempt_morph "$@"; fi
Implementations sections for reading error messages